How to Install Comodo SSL on Nginx

Home » Linux » How to Install Comodo SSL on Nginx
October 15, 2015 Linux No Comments

I use cheapssl and cyberssl for cheap SSL certs.

you will need CSR to generate the certificate file for your domain. CyberSSL does it for you but if you are with other registrar they may ask you to provide the CSR. To generate the CSR, you can use the handy tool to generate the command for you .

OpenSSL Generation

You can then paste the command generated by the tool in your terminal to generate the key and csr file.

This gives you two files:

  • example_com.key — your Private key. You’ll need this later to configure ngxinx.
  • example_com.csr — Your CSR file.

Once you provide the CSR and activate SSL,you should soon get an email with your PositiveSSL Certificate. It contains a zip file with the following:

  • Root CA Certificate – AddTrustExternalCARoot.crt
  • Intermediate CA Certificate – COMODORSAAddTrustCA.crt
  • Intermediate CA Certificate – COMODORSADomainValidationSecureServerCA.crt
  • Your PositiveSSL Certificate – www_example_com.crt (or the subdomain you gave them)
  1. Combine the above crt files into a bundle (the order matters, here):
  2. Store the bundle wherever nginx expects to find it:
  3. Ensure your private key is somewhere nginx can read it, as well.:
  4. Make sure your nginx config points to the right cert file and to the private key you generated earlier:
  1. Restart nginx.

LEAVE A COMMENT