opensslcsr

Converting a CSR in DER format to PEM format without a private key


I have a CSR that I obtained from Okta. Unfortunately, Okta provides the CSR in DER format. I don't have the private key used to generate this CSR, so how would I convert it to PEM format?

Is this possible at all?


Solution

  • Yes, you can use OpenSSL to convert the DER formatted CSR to PEM format.

    To do so, here's an example command-line:

    openssl req -inform DER -outform PEM -in CSR.der -out CSR.pem