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

Add option to add custom attributes to ACME CSR #2417

Open
1 task done
Nelwhix opened this issue Jan 30, 2025 · 0 comments
Open
1 task done

Add option to add custom attributes to ACME CSR #2417

Nelwhix opened this issue Jan 30, 2025 · 0 comments

Comments

@Nelwhix
Copy link

Nelwhix commented Jan 30, 2025

Welcome

  • Yes, I've searched similar issues on GitHub and didn't find any.

How do you use lego?

Through Traefik

Detailed Description

Hi there,

I ran into the following issue: the company CA has a policy, that any certificate requests need to contain the attribute emailAddress. The attempts to use traefik's ACME mechanism failed, because this attribute is missing in the CSR it sent to the CA via ACME. Debugging the CSR I found that there is no attribute at all except the SAN:

Certificate Request:
    Data:
        Version: 1 (0x0)
        Subject: CN = whoami.local.domain
        Subject Public Key Info:
            Public Key Algorithm: rsaEncryption
                Public-Key: (4096 bit)
                Modulus:
                    00:b2:37:c9:1a:73:16:6f:b3:44:4c:27:40:63:b1:
                    ...
                    58:be:60:27:21:38:2b:08:90:4c:08:69:d0:f1:09:
                    d8:51:f1
                Exponent: 65537 (0x10001)
        Attributes:
            Requested Extensions:
                X509v3 Subject Alternative Name: 
                    DNS:whoami.local.domain
    Signature Algorithm: sha256WithRSAEncryption
    Signature Value:
        1f:42:af:c8:7b:5e:57:2f:ea:e4:4d:0b:18:76:8c:81:6e:21:
        ...
        96:75:da:32:c4:ce:bc:c8

It would be great If there could be more attributes added.

I just copied this issue over from traefik/traefik#11432. I will be more than happy to contribute a PR if you think this is a good idea. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants