These are the steps to create a self signed SSL Certificate.
Generate the Key.
Next generate the Certificate Signing Request.
You might want to remove the passphrase to prevent being prompted to enter it when you server restarts.
To do that first make a copy of the Key.
https://gist.github.com/pwelagedara/dd1fc4314bb4d4d3e35cd14112c51577
Run this to get the new Key.
Now sign the Key. Remember you need to change the expiration.
Now you have the .crt
and the .key
files.