How to generate a self-signed certificate

Generating a 4096 bit RSA private key
.......................................................................................................................++
....................++
writing new private key to 'key.key'
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) []:CA
State or Province Name (full name) []:QC
Locality Name (eg, city) []:somewhere
Organization Name (eg, company) []:Studio Webux S.E.N.C
Organizational Unit Name (eg, section) []:Demo Framework
Common Name (eg, fully qualified host name) []:
Email Address []:

How to use a certificate

Create a file named .env or export these variables,

SSL_KEY=
SSL_CERT=

these variables must be base64 encode of the content of the certificate and the key