How to generate a CSR from a private SSL key?

I am renewing my SSL key for my websites. The CA requests a CSR. I have my private key. How to generate a CSR (Certificate Signing Request) from a private SSL key?

asked Jan 25, 2016 by anonymous

1 Answer

You can generate a CSR from your private key with openssl:

openssl req -new -key ssl.key -out req.pem

Here, ssl.key is your private key and req.pem will store your CSR. (Ref: OpenSSL examples

You can easily decode your CSR to see what is in it by using

openssl req -in req.pem -noout -text
answered Jan 25, 2016 by Eric Z Ma (44,200 points)

Please log in or register to answer this question.

Copyright © SysTutorials. User contributions licensed under cc-wiki with attribution required.
Hosted on Dreamhost