Skip to content

Instantly share code, notes, and snippets.

View itsdamslife's full-sized avatar
🎯
Learning new things...

Dams itsdamslife

🎯
Learning new things...
View GitHub Profile
@itsdamslife
itsdamslife / openssl.md
Created March 4, 2020 10:45 — forked from NoMan2000/openssl.md
Common OpenSSL Commands with Keys and Certificates

Common OpenSSL Commands with Keys and Certificates

SSL Info

Generate RSA private key with certificate in a single command

openssl req -x509 -newkey rsa:4096 -sha256 -keyout example.key -out example.crt -subj "/CN=example.com" -days 3650 -passout pass:foobar

Generate Certificate Signing Request (CSR) from private key with passphrase

openssl x509 -x509toreq -in example.crt -out example.csr -signkey example.key -passin pass:foobar