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

"BEGIN PRIVATE KEY" sometimes isn't recognized #12

Open
chrismwendt opened this issue Dec 23, 2018 · 0 comments
Open

"BEGIN PRIVATE KEY" sometimes isn't recognized #12

chrismwendt opened this issue Dec 23, 2018 · 0 comments

Comments

@chrismwendt
Copy link

I ran https://github.com/StefH/OpenSSL-X509Certificate2-Provider#code-example-3---create-a-x509-certificate-and-add-private-key on a key file without RSA in the header or footer and ran into an error: "The server mode SSL must use a certificate with the associated private key."

Changing the header and footer to BEGIN RSA PRIVATE KEY and END RSA PRIVATE KEY worked, but I'm not sure why considering this library appears to support both forms https://github.com/StefH/OpenSSL-X509Certificate2-Provider/search?q=begin+private+key&unscoped_q=begin+private+key

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

No branches or pull requests

1 participant