This is mostly for me to remember how to do various things.
This command will create a 10 year certificate:
openssl req -nodes -new -x509 -keyout server.key -out server.cert -days 3650