Skip to content

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

Description

@chrismwendt

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

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions