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