Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vyspiansky/23dd0174b6002348558162ae62001745 to your computer and use it in GitHub Desktop.
Save vyspiansky/23dd0174b6002348558162ae62001745 to your computer and use it in GitHub Desktop.
Self-signed certificate in Debian/Ubuntu

Debian/Ubuntu image already included a self-signed certificate.

docker run \
  --rm \
  -e POSTGRES_PASSWORD=password \
  postgres:12 \
  -c ssl=on \
  -c ssl_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem \
  -c ssl_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment