Generate a new CSR
Generate A Private Key
ECC:
keyfilename=ec_key.pem
cert=ec_cert.crt
openssl ecparam -genkey -name prime256v1 -out $keyfilename
openssl ecparam -genkey -name secp256r1 -out $keyfilename
# List of Avail curves
openssl ecparam --list_curves
# Gen Cert:
openssl req -new -x509 -key $keyfilename -sha256 -nodes -out $cert -days 365
# Combine Private & Public in one file:
cat $keyfilename $cert > ec.pem
# verify
openssl x509 -in ec.pem -noout -textRSA:
Generate Private Key
Verification should output something like this:
Using -Subj switch
Create CSR with one line
Converting Certificate Formats
The following is an excerpt from https://www.digicert.com/kb/ssl-support/openssl-quick-reference-guide.htm:
PEM to PKCS#12
PKCS#12 to PEM
PEM to DER
DER to PEM
Last updated