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

Fix #50680 X509 - renewal check - short subject title not match #50734

Merged
merged 3 commits into from
Dec 13, 2018
Merged

Fix #50680 X509 - renewal check - short subject title not match #50734

merged 3 commits into from
Dec 13, 2018

Conversation

Poil
Copy link

@Poil Poil commented Dec 4, 2018

What does this PR do?

Fix #50680

When using short tag (CN, L, ST) to generate a certificate (in the signing policy), it is renewed at each run.

In my debug when dumping the subject content :

    new: {'C': 'FR', 'commonName': 'grafana.ssllab.com', 'localityName': 'Rennes', 'ST': 'Bretagne'}, 
    current: {'C': 'FR', 'SP': 'Bretagne', 'CN': 'grafana.ssllab.com', 'L': 'Rennes'}

Perhaps the best way should be to call _get_signing_policy() and pass it to verify_signature() in certificate_managed because here I call x509.create_certificate in dry mode to only get the Issuer Public Key

@Poil Poil changed the title Fix #50680 short subject title not match Fix #50680 X509 - renewal check - short subject title not match Dec 4, 2018
@cachedout
Copy link
Contributor

@clinta Any thoughts here?

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

Successfully merging this pull request may close these issues.

3 participants