Skip to content

Instantly share code, notes, and snippets.

View zero5100's full-sized avatar

Andy Kellerstrass zero5100

  • Green Bay, Wisconsin
View GitHub Profile
@zero5100
zero5100 / create-docker-tls.sh
Created March 1, 2018 00:57 — forked from mac2000/create-docker-tls.sh
Creating and setting up Docker for TLS
#!/bin/bash
# At the end you will have 6 files:
# ca/ca.pem - used by both client and server to verify each other certificates
# ca/ca-key.pem - keep it in secret it may be used to generate new certificates
# client/cert.pem, client/key.pem - in conjunction with /ca/ca.pem will be used by client to speak with server
# server/cert.pem, server/key.pem - in conjunction with /ca/ca.pem will be used by server
#
# NOTICE: DO NOT FORGET to set your **Server** ip and dns in server/openssl.cnf each time you generating new server certificates
#