Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 628 Bytes

README.md

File metadata and controls

25 lines (18 loc) · 628 Bytes

cfztna-tls-beacon

How

  1. Generate a self-signed certificate

    openssl req -x509 -newkey rsa:4096 -sha256 -days 3650 -nodes -keyout tls.key -out tls.crt -subj "/CN=cfztna-tls-beacon" -addext "subjectAltName=DNS:cfztna-tls-beacon"
  2. Get SHA256 fingerprint of the certificate

    openssl x509 -noout -fingerprint -sha256 -inform pem -in tls.crt | tr -d :
  3. Start beacon

    docker run -d --name cfztna-tls-beacon -p 4443:4443 \
      -e TLS_CERT=xxx \
      -e TLS_KEY=xxx \
      -e PORT=4443 \
      gcr.io/moonrhythm-containers/cfztna-tls-beacon