Skip to content

Instantly share code, notes, and snippets.

@dylanmei
Created June 15, 2017 14:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dylanmei/d8e17bec4d498d584ff9b7bae39737f9 to your computer and use it in GitHub Desktop.
Save dylanmei/d8e17bec4d498d584ff9b7bae39737f9 to your computer and use it in GitHub Desktop.
simple ss-cert
openssl genrsa -out ca-key.pem 2048
openssl req -x509 -new -nodes -key ca-key.pem -subj "/CN=*" -days 3650 -out ca.pem
openssl genrsa -out telepath-key.pem 2048
openssl req -new -key telepath-key.pem -subj "/CN=telepath" -out telepath.csr
openssl x509 -req -in telepath.csr -CA ca.pem -CAkey ca-key.pem -CAcreateserial -out telepath.pem -days 3650
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment