16
How to install SSL certificate from .pem file

How to install ssl certificate from .pem

Embed Size (px)

Citation preview

Page 1: How to install ssl certificate from .pem

How to install SSL certificate from .pem file

Page 2: How to install ssl certificate from .pem

In our last article we given the steps to make CSR (Certificate Signing Request) file for Certificate Authority. CSR file provided to certificate Authority to create certificate.

You can learn more about how to create CSR (Certificate Signing Request) in following

http://www.codeandyou.com/2015/09/how-to-generate-csr-openssl.html

Now we showing how to install .pem ssl certificate.

"CertificateSigningRequest.csr" is a CSR file which we sent to certificate authority. And certificate authority given us

"cert.pem"

What is .pem filePrivacy Enhanced Mail (PEM) is a X.509 certificate file which you will receive from certificate authority. Its defined in RFC's 1421 through 1424, this file contains SSL certificate for Apache/IIS or may include an entire certificate chain including public key, private key, and root certificates. It's a base64 translation of the x509 ASN.1 keys.

Now we need to get certificate from .pem file. We will use OpenSSL to get certificate from .pem file . We will used following command to get certificate.

PKCS#12 File Creation Process

openssl pkcs12 -inkey privatekey.pem -in cert.pem -aes256 -export -out cert.p12

cert.pem is the certificate that you received from certificate authority.

Following is the steps to get certificate from .pem file

1. Install and Open SSL 2. You need cert.pem file and privatekey.pem to get certificate3. Create certificate from .pem file4. Enter pass phrase for privatekey.pem5. Enter Export Password6.Verifying - Enter Export Password7. You will get .p12 file, its certificate file8. Now Install .p12 certificate9. Check certificate installed into certificate store.

Page 3: How to install ssl certificate from .pem

1. Install and Open SSL

2. You need cert.pem file and privatekey.pem to get certificate - privatekey.pem is a file which you got , when you created CSR file.

3. Create certificate from .pem file - Use following command to get certificate from .pem file

openssl pkcs12 -inkey privatekey.pem -in cert.pem -aes256 -export -out cert.p12

Page 4: How to install ssl certificate from .pem

4. Enter pass phrase for privatekey.pem - Its password which you inserted when you created CSR file

5. Enter Export Password - Use any password it will ask you when you will import/export certificate

6.Verifying - Enter Export Password - Use same password you use for Export Password

Page 5: How to install ssl certificate from .pem

7. You will get .p12 file, its certificate file - If command run successfully you will get cert.p12 file , its certificate

8. Now Install .p12 certificate - Now it's time to install certificate into certificate store, double click on certificate , it will show you following screen.

Page 6: How to install ssl certificate from .pem
Page 7: How to install ssl certificate from .pem
Page 8: How to install ssl certificate from .pem
Page 9: How to install ssl certificate from .pem
Page 10: How to install ssl certificate from .pem
Page 11: How to install ssl certificate from .pem
Page 12: How to install ssl certificate from .pem

9. Check certificate installed into certificate store - After installation you need to check certificate installed into store, Use following steps to check that.

Page 13: How to install ssl certificate from .pem
Page 14: How to install ssl certificate from .pem
Page 15: How to install ssl certificate from .pem
Page 16: How to install ssl certificate from .pem

Thanks

www.codeandyou.com

http://www.codeandyou.com/2015/10/how-to-install-ssl-certificate-from-pem.html

Keywords - How to install SSL certificate from .pem file, install certificate in windows, check installed certificate in windows