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