Skip to content

Instantly share code, notes, and snippets.

@jrichardsz
Last active April 14, 2024 22:15
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 jrichardsz/93b8e42563b315ff0dd3a4a4387a7104 to your computer and use it in GitHub Desktop.
Save jrichardsz/93b8e42563b315ff0dd3a4a4387a7104 to your computer and use it in GitHub Desktop.
cert snippets

cert creation with linux

openssl req -new -x509 -keyout cert.pem -out cert.pem -days 365 -nodes -subj '/C=GB/ST=London/L=London/O=Global Security/OU=IT Department/CN=example.com'

openssl req -new -x509 -keyout private.pem -out cert.pem -days 365 -nodes -subj '/C=GB/ST=London/L=London/O=Global Security/OU=IT Department/CN=example.com'

cert to string

cat /foo/bar | base64 -w 0 && echo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment