0
votes

Based on CSR I have got the certificate file (Base64). now I need to convert this certificate to PEM format and I need a private key to import the certificate.

How do I create a private key from a certificate webserver.crt file using openssl.

Thanks,

1

1 Answers

-1
votes

first of all, you need to create a CSR on the server. by below command.

openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr

  1. after generated CSR you will got mydomain.key mydomain.pem file.