Skip to content

Instantly share code, notes, and snippets.

View gruggiero's full-sized avatar

Giovanni Ruggiero gruggiero

  • Rome, Italy
View GitHub Profile

OpenSSL Cheatsheet

Generating Certificates

Generate RSA Private Key + CSR
openssl req -out newkey.csr -new -newkey rsa:[bits] -nodes -keyout priv.key

Generate Self Signed Certificate + Priv Key
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:[bits] -keyout priv.key -out cert.crt