Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I convert .csr into .pem file format as I have to submit csr in pem format

I have to submit CSR in pem format.

I have generated CSR using OpenSSL but got stuck in converting it into PEM format.

I have to obtain example - csr.pem from example.csr. How it can be done?

like image 661
vikas pandit Avatar asked Oct 21 '25 09:10

vikas pandit


1 Answers

OpenSSL creates CSRs in PEM format by default.

If you generated the CSR without the -outform option, the CSR will already be in PEM format.

If you did use the -outform DER option, you can convert with:

openssl req -inform DER -in <original CSR file> -out <converted CSR file>

The .pem file extension is just a name. If the file is in PEM format, simply change the extension on the file from .csr to .pem.

like image 110
garethTheRed Avatar answered Oct 24 '25 12:10

garethTheRed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!