-
Notifications
You must be signed in to change notification settings - Fork 112
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
IpAddress SANs are invalid #25
Comments
Oh, I think I know the mistake. I was following this text from RFC 5280:
I only realized now that it's from the name constraints section and not from the subject alternative name section. The spec has this text for the subject alternative name section:
It should be easy to change it though. Will do this later today. |
@passcod can you try whether current master fixes it for you? If so, I'll make a new bugfix release. Also wondering how I can add tests for this stuff... webpki doesn't support ip addresses (see briansmith/webpki#54) and the openssl test infrastructure doesn't involve full validation. I guess we'll need some additional mock code for openssl. |
That works perfectly now |
Not super sure why this is writing CIDRs?
The OID description expects only an octet string under the tag
IPAddress
:and OpenSSL marks rcgen-generated IP fields as invalid:
Generating IPAddress SANs with OpenSSL makes
[u8; 4]
and[u8; 16]
for IP v4 and v6 respectively, and not CIDRs with the mask.The text was updated successfully, but these errors were encountered: