-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Handle extra headers in PEM encoded private key files #33168
Comments
Pinging @elastic/es-security |
Bags and attributes are discussed in https://tools.ietf.org/html/rfc7292 . Openssl seems to support adding the but there seems to be no specification that explicitly defines how these attributes are to be presented in a key/cert file. I suggest we, too, err a little on the side of interoperability and backwards compatibility with pre-6.4 configurations in the expense of strict conformance to the RFC by allowing and disregarding extra content before the header |
Allow for extra non-whitespace before the Header of PEM encoded key files. Resolves elastic#33168
Regarding the inability to use PEM keys exported from PKCS#12 containers as discussed in elastic#33168
Regarding the inability to use PEM keys exported from PKCS#12 containers as discussed in #33168
Allow for extra non-whitespace before the Header of PEM encoded key files. Resolves #33168
Allow for extra non-whitespace before the Header of PEM encoded key files. Resolves #33168
Allow for extra non-whitespace before the Header of PEM encoded key files. Resolves #33168
Openssl adds some extra headers (
Bag Attributes
andKey Attributes
) to keys that it exports fromPKCS#12
containers, i.eThis information is redundant as the notion of
Bags
is relevant only forPKCS#12
and can be disregarded, so we should ensure thatPemUtils
can read private key files even when this is present in a PEM key file.The text was updated successfully, but these errors were encountered: