HTTPS support for Netpicker

Add an SSL certificate

First, make sure you have the file nginx-ssl.conf file in your folder. If not, pull it from the netpicker GitHub repository.

To add a (self-signed) SSL certificate to Netpicker to enable HTTPS, add the following files to the certs folder:

  • private.key
  • certificate.crt

Note: use these exact names!

Also, make sure your docker-compose.yml config contains the following volume mapping (this is commented out by default):

  frontend:
    ports:
      - "443:443"
    volumes:
      - ./nginx-ssl.conf:/etc/nginx/conf.d/nginx-ssl.conf
      - ./certs:/etc/nginx/certs/

Create a self-signed SSL certificate

If you don’t have a certificate yet, follow these steps to create one:

Generate a private key:
openssl genrsa -out private.key 2048

Generate a certificate signing request (CSR):
openssl req -new -key private.key -out certificate.csr

Generate a self-signed certificate:
openssl x509 -req -in certificate.csr -signkey private.key -out certificate.crt