Closed augjoh closed 1 week ago
Confirm the same issue, when trying to issue a cert using IMAP auth method:
DEBUG:certbot._internal.log:Exiting abnormally:
Traceback (most recent call last):
File "/workspace/acme_email/cli.py", line 264, in <module>
main(args)
File "/workspace/acme_email/cli.py", line 202, in main
request_cert(args, config)
File "/workspace/acme_email/cli.py", line 61, in request_cert
key, csr = csr_util.prepare(args.email, config, key_path=args.key_path, usage=args.usage)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspace/acme_email/certbot_castle/csr.py", line 77, in prepare
key = key or crypto_util.generate_key(config.rsa_key_size, config.key_dir)
^^^^^^^^^^^^^^
File "/workspace/acme_email/venv/lib/python3.11/site-packages/certbot/configuration.py", line 176, in __getattr__
value = getattr(self.namespace, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'Namespace' object has no attribute 'key_dir'
ERROR:certbot._internal.log:An unexpected error occurred:
ERROR:certbot._internal.log:AttributeError: 'Namespace' object has no attribute 'key_dir'
It's a problem of certbot's version. They changed something that broke the code.
In the meantime you can use v2:
pip install -U certbot==2.11.0
After installing the following packages with python 3.12.7 on alpine:
Acme client crashes when invoked as follows: