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

Detect correct RA certificate from SCEP getca response #82

Open
mbartosch opened this issue Aug 14, 2014 · 0 comments
Open

Detect correct RA certificate from SCEP getca response #82

mbartosch opened this issue Aug 14, 2014 · 0 comments

Comments

@mbartosch
Copy link
Contributor

Currently CertNanny uses the very first certificate returned by the SCEP server getca command to encrypt the SCEP payload.
This may not be correct, in particular Windows CA does not seem to send the RA cert as first certificates.
See certnanny/sscep#39

Suggested algorithm:
If only one cert is returned, use it.
Iterate through all returned certificates. If one certificate is returned without key usage CA:true use this certificate as RA cert.
If no cert is returned without CA:true build a chain from the returned certs and use the "lowest" one (in case the CA is using a CA certificate as RA certificate.

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

No branches or pull requests

1 participant