Generate SSL Cert using Command Line

Install openssl on Windows:

In cmd.exe: C:\> winget install openssl

Then from its folder go with C:\> openssl req -newkey rsa:2048 -nodes -x509 -keyout server.key -out server.crt

Linux sudo apt install openssl

openssl ecparam -list_curves

 

openssl ecparam -out ec_key.pem -name secp256r1 -genkey 
openssl req -new -key ec_key.pem -x509 -nodes -days 365 -out cert.pem

Revision #3
Created 22 December 2023 02:10:42 by ColtM
Updated 7 August 2024 23:24:39 by ColtM