Skip to content

Instantly share code, notes, and snippets.

@huezo
Created July 15, 2020 16:47
Show Gist options
  • Save huezo/ba7409685a13e68c6ac93339664f92e7 to your computer and use it in GitHub Desktop.
Save huezo/ba7409685a13e68c6ac93339664f92e7 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo ">> generating self signed cert"
openssl req -x509 -newkey rsa:4086 \
-subj "/C=XX/ST=XXXX/L=XXXX/O=XXXX/CN=localhost" \
-keyout "$PWD/key.pem" \
-out "$PWD/cert.pem" \
-days 3650 -nodes -sha256
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment