Generate Self-Signed SSL Key Pair with OpenSSL Leave a Comment / Computing, Security / By David Andrzejewski openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -keyout key.pem -out cert.pem -sha256