Generate Private Key and CSR for SSL Certificate
Preface
If you need to create or renew SSL certificate, you can use the following steps.
Procedure
Generate the Private Key
Generate the CSR
Create Config File
Add the configuration
# Generate Private Key and CSR for SSL Certificate
[req]
distinguished_name = req_distinguished_name
x509_extensions = v3_req
prompt = no
[req_distinguished_name]
C = com
ST = Jakarta Special Region
L = Central Jakarta
OU = Information Technology
CN = *.ndkprd.com
[v3_req]
keyUsage = keyEncipherment, dataEncipherment
extendedKeyUsage = serverAuth
Generate the CSR File using the Configuration
Test the CSR
Conclusion
You can use the generated CSR file to request the signed certificate from your Certificate Authority, be it a local one in the organization or an external one, like Google or Digicert.