Skip to content

Instantly share code, notes, and snippets.

@w35l3y
Last active August 31, 2020 01:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save w35l3y/5bb7fe8508d576472136f35428019177 to your computer and use it in GitHub Desktop.
Save w35l3y/5bb7fe8508d576472136f35428019177 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
git clone https://github.com/dakshshah96/local-cert-generator.git &&
cd local-cert-generator &&
sh createRootCA.sh &&
sudo update-ca-certificates &&
sh createSelfSigned.sh &&
cp rootCA.pem .. &&
cat server.key server.crt >> ../server.pem &&
cd .. &&
rm -rf local-cert-generator
# https://serverfault.com/a/890417/192596
# https://stackoverflow.com/a/56465379/157873
# To run:
# bash <(wget -qO- https://gist.github.com/w35l3y/5bb7fe8508d576472136f35428019177/raw/local-cert-generator.sh)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment