Self-signed
How to generate a self-signed SSL certificate
Link to original
From a real registrar
How to get an SSL certificate from a real registrar
Now that Let’s Encrypt exists, the below information is a lot less useful…
Generate a unique site key:
Generate a certificate signing request:
Link to original