Creating a self-signed SSL certificate

If the current certificate ever caputs, there are several ways to create a new one. Just make sure it expires 10 years from now (NB: if it's 2028, please make sure you won't run into the 2038 problem).

Mac

Open a terminal and enter the following command:

openssl req -x509 -out localhost.crt -keyout localhost.key -days 3650\
  -newkey rsa:2048 -nodes -sha256 \
  -subj '/CN=localhost' -extensions EXT -config <( \
   printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

Copy localhost.crt and localhost.key to YOUR_PROJECT/docker-apache-files/ and rebuild your containers.

Windows

Method 1: If you want to use one of the free binaries, make sure that source code comes with it--it'll have to go through a security audit one of these days. Then install it and run the command in the Mac section. This will generate localhost.crt and localhost.key.

Method 2: If you want to skip the audit and use something with much more community support, set up WinSCP if you want a GUI, or skip it if you know what you're doing. Then ssh into offline1 and run the command from the Mac section above. This will create localhost.crt and localhost.key in /home/offline1/. Navigate there in WinSCP and get those files onto your computer.

Where to move the files you made: YOUR_PROJECT/docker-apache-files/

Important addresses