Skip to content

Instantly share code, notes, and snippets.

@soardex
Created February 26, 2017 15:32
Show Gist options
  • Save soardex/132067494357ba4701c19b002318df13 to your computer and use it in GitHub Desktop.
Save soardex/132067494357ba4701c19b002318df13 to your computer and use it in GitHub Desktop.
Create Stunnel Cert
openssl genrsa 2048 | tee stunnel.key
openssl req -new -key stunnel.key -x509 -days 365 -out stunnel.crt
openssl dhparam 2048 | tee stunnel.dhp
cat stunnel.crt stunnel.key stunnel.dhp | tee stunnel.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment