Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openssl password decryption error #193

Open
zuku81 opened this issue Apr 25, 2024 · 1 comment
Open

openssl password decryption error #193

zuku81 opened this issue Apr 25, 2024 · 1 comment
Labels
question Further information is requested

Comments

@zuku81
Copy link

zuku81 commented Apr 25, 2024

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)

@zuku81 zuku81 changed the title rsault was deprecated openssl password decryption error Apr 25, 2024
@thekix
Copy link
Member

thekix commented Aug 15, 2024

Dear @zuku81

you are using python2, and this version works with python3. Are you using this OfflineIMAP version (OfflineIMAP3).

Regards,
kix

@thekix thekix added the question Further information is requested label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants