Originally posted by **CLSMCSMII** July 16, 2021
After git clone and run setup.py successfully, I tried this command
python3 cli.py cert --config-dir . --work-dir . --logs-dir . -e clxxxxx@icloud.com --contact panxxx@xxxxxx --usage digitalSignature --usage keyEncipherment
(both emails are valid)
Then I got this error:
An unexpected error occurred:
ImportError: cannot import name 'pkcs7'
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/tmphkn09j3p/log or re-run Certbot with -v for more details.
And.. tail /tmp/tmphkn09j3p/log
File "/home/tempuser/acme/acme_email/certbot_castle/plugins/imap.py", line 22, in
from cryptography.hazmat.primitives.serialization import pkcs7
ImportError: cannot import name 'pkcs7'
2021-07-16 10:55:46,200:ERROR:certbot._internal.log:An unexpected error occurred:
2021-07-16 10:55:46,200:ERROR:certbot._internal.log:ImportError: cannot import name 'pkcs7'
Already install pkcs7 with this command "pip3 install pkcs7" still got the same error.
Any idea?
Discussed in https://github.com/polhenarejos/acme_email/discussions/2