Skip to content

An unexpected error occurred: AttributeError: 'Namespace' object has no attribute 'key_dir' #48

@Ceratius

Description

@Ceratius

Hello there,
I wanted try this pretty awesome-sounding tool. However, after successful installation and after installing the root certificate, when trying to request an S/MIME certificate, after the "You are requesting a S/MIME certificate" header, I receive the error

An unexpected error occurred:
AttributeError: 'Namespace' object has no attribute 'key_dir'

The full stack trace is as follows:

2025-03-26 20:34:12,009:DEBUG:certbot._internal.log:Exiting abnormally: Traceback (most recent call last): File "cli.py", line 264, in <module> main(args) File "cli.py", line 202, in main request_cert(args, config) File "cli.py", line 61, in request_cert key, csr = csr_util.prepare(args.email, config, key_path=args.key_path, usage=args.usage) File "C:\Users\cerat\Downloads\acme_email-0.14.1\certbot_castle\csr.py", line 77, in prepare key = key or crypto_util.generate_key(config.rsa_key_size, config.key_dir) File "C:\Users\cerat\Downloads\acme_email-0.14.1\venv\lib\site-packages\certbot\configuration.py", line 176, in __getattr__ value = getattr(self.namespace, name) AttributeError: 'Namespace' object has no attribute 'key_dir' 2025-03-26 20:34:12,010:ERROR:certbot._internal.log:An unexpected error occurred: 2025-03-26 20:34:12,010:ERROR:certbot._internal.log:AttributeError: 'Namespace' object has no attribute 'key_dir'

I am pretty new to python, so the error may be easy to solve, but I haven't found a solution yet. Any ideas what causes this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions