Using a PEM file with a different header

Niraj Gupta shared this question 2 months ago
Answered

When trying to use a PEM file for an SSL connection, always get an error that "----BEGIN CERTIFICATE----" is missing. However, -----BEGIN RSA PRIVATE KEY----- is also a valid header, and should be allowed.

Comments (1)

photo
1

The -----BEGIN RSA PRIVATE KEY----- section is OK, but the "----BEGIN CERTIFICATE----" section of your PEM file is missing. It's Your Primary SSL certificate, it's required.

Please refer to https://www.rapidsslonline.com/blog/how-to-create-a-pem-file-from-your-ssl-certificates/