Table of Contents

SSL Certificates

General Information

How to order and replace SSL certificates on popular Linux web servers.

Checklist


Create Request

Creating a legit CSR or self-signed certificate.

CSR

Certificate Signing Requests (CSR) are created with openssl for new certificates. If you are renewing, this step can be skipped.

Generate a new CSR (Certificate Signing Request) and Private key

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

Generate a new CSR and use an existing Private Key

openssl req -sha256 -new -key MYSITE.key -out MYSITE.csr

Self-Signed Cert

If this is for home or testing purposes, a self-signed certificate is good enough.

Create Self-Signed Cert that is good for 1 year

openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout MYSITE.key -out MYSITE.crt

Order Certificate

This step can be skipped if you created a self-signed certificate.


Update Web Server