openssl password decryption error
Hi, I would like to decrypt password from file inside offlineimap, offlineimap have such config: remotepasseval = unencrypt_password("~/.offlineimappass")
and my offlineimap.py file looks like:
#!/usr/bin/env python2
#import os
#import sys
#from offlineimap import OfflineImap
#oi = OfflineImap()
#oi.run()
import os
def unencrypt_password(filename):
return os.popen("cat %s | openssl pkeyutl -decrypt "
"-inkey ~/.ssh/private.pem" % filename)
.read().rstrip()
but during a run I have such error: not enough values to unpack (expected 2, got 1)
Dear @zuku81
you are using python2, and this version works with python3. Are you using this OfflineIMAP version (OfflineIMAP3).
Regards, kix