How to create a self-signed certificate using OpenSSL
Dec 5, 2020
- Create a key
/etc/nginx/certificates$ sudo openssl ecparam -genkey -name prime256v1 -out your.company.com.ecc.key.pem
2. Create a CSR
/etc/nginx/certificates$ sudo openssl req -new -key your.company.com.ecc.key.pem -out your.company.com.ecc.csr.pem
3. Create a certificate
/etc/nginx/certificates$ sudo openssl req -x509 -days 365 -key your.company.com.ecc.key.pem -in your.company.com.ecc.csr.pem -out your.company.com.ecc.crt.pem
4. View a certificate
/etc/nginx/certificates$ sudo openssl x509 -text -noout -in your.company.com.ecc.crt.pem