Skip to content

Instantly share code, notes, and snippets.

@ytensor42
Last active October 13, 2018 05:14
Show Gist options
  • Select an option

  • Save ytensor42/fe72e67d27fccba7c2433033aed1f51a to your computer and use it in GitHub Desktop.

Select an option

Save ytensor42/fe72e67d27fccba7c2433033aed1f51a to your computer and use it in GitHub Desktop.
openssl notes
# self signed cert
openssl req -subj '/C=US/ST=California/L=San Francisco/O=Company Name/OU=Org/CN=app.example.com' \
-x509 -days 3650 -batch -nodes -newkey rsa:4096 -sha256 -keyout example.key -out example.crt
cp -p example.key /etc/pki/tls/private/
cp -p example.crt /etc/pki/tls/certs/
cat example.crt example.key > example_cert.pem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment