Self-signed certificate with OpenSSL

# RSA
openssl req -nodes -new -x509 -keyout ssl.key -out ssl.crt

# ecdsa384
openssl ecparam -genkey -name secp384r1 -out ssl.key
openssl req -nodes -new -in ssl.key -out ssl.csr
openssl x509 -signkey ssl.key -in ssl.csr -req -days 365 -out ssl.crt

# Export cert and key as pkcs12
openssl pkcs12 -export -out ssl.p12 -in ssl.crt -inkey ssl.key
^ back to top