Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # OpenSSL intermediate CA configuration file.
- # Copy to `/root/ca/cert-archive/intermediate/openssl.cnf`.
- [ ca ]
- # `man ca`
- default_ca = CA_default
- [ CA_default ]
- # Directory and file locations.
- dir = /root/certCA/ca/intermediate
- certs = $dir/certs
- crl_dir = $dir/crl
- new_certs_dir = $dir/newcerts
- database = $dir/index.txt
- serial = $dir/serial
- RANDFILE = $dir/private/.rand
- # The root key and root certificate.
- private_key = $dir/private/intermediate.key.pem
- certificate = $dir/certs/intermediate.cert.pem
- # For certificate revocation lists.
- crlnumber = $dir/crlnumber
- crl = $dir/crl/intermediate.crl.pem
- crl_extensions = crl_ext
- default_crl_days = 3652
- # SHA-1 is deprecated, so use SHA-2 instead.
- default_md = sha256
- name_opt = ca_default
- cert_opt = ca_default
- default_days = 7300
- preserve = no
- policy = policy_loose
- [ policy_strict ]
- # The root CA should only sign intermediate certificates that match.
- # See the POLICY FORMAT section of `man ca`.
- countryName = match
- stateOrProvinceName = match
- organizationName = match
- organizationalUnitName = optional
- commonName = supplied
- emailAddress = optional
- [ policy_loose ]
- # Allow the intermediate CA to sign a more diverse range of certificates.
- # See the POLICY FORMAT section of the `ca` man page.
- countryName = optional
- stateOrProvinceName = optional
- localityName = optional
- organizationName = optional
- organizationalUnitName = optional
- commonName = supplied
- emailAddress = optional
- subjectAltName = optional
- [ req ]
- distinguished_name = req_distinguished_name
- x509_extensions = server_cert
- req_extensions = v3_req
- [ v3_req ]
- # Extensions for a certificate request (`man x509v3_config`).
- subjectAltName = @alt_names
- [ req_distinguished_name ]
- # See <https://en.wikipedia.org/wiki/Certificate_signing_request>.
- countryName = Country Name (2 letter code)
- stateOrProvinceName = State or Province Name
- localityName = Locality Name
- 0.organizationName = Organization Name
- organizationalUnitName = Organizational Unit Name
- commonName = Common Name
- emailAddress = Email Address
- # Optionally, specify some defaults.
- countryName_default = US
- stateOrProvinceName_default = NOTEXIST
- localityName_default = SOMEWHERE
- 0.organizationName_default = Example Co.
- organizationalUnitName_default = IT
- emailAddress_default = not@exist.us
- [ v3_ca ]
- # Extensions for a typical CA (`man x509v3_config`).
- subjectKeyIdentifier = hash
- authorityKeyIdentifier = keyid:always,issuer
- basicConstraints = critical, CA:true, pathlen:4
- keyUsage = critical, digitalSignature, cRLSign, keyCertSign
- subjectAltName = @alt_names
- [ v3_intermediate_ca ]
- # Extensions for a typical intermediate CA (`man x509v3_config`).
- subjectKeyIdentifier = hash
- authorityKeyIdentifier = keyid:always,issuer
- basicConstraints = critical, CA:true, pathlen:1
- keyUsage = critical, digitalSignature, cRLSign, keyCertSign
- subjectAltName = @alt_names
- [ usr_cert ]
- # Extensions for client certificates (`man x509v3_config`).
- basicConstraints = CA:FALSE
- nsCertType = client
- nsComment = "OpenSSL Generated Client Certificate"
- subjectKeyIdentifier = hash
- authorityKeyIdentifier = keyid,issuer:always
- keyUsage = nonRepudiation, digitalSignature, keyEncipherment
- extendedKeyUsage = clientAuth
- [ server_cert ]
- # Extensions for server certificates (`man x509v3_config`).
- basicConstraints = CA:FALSE
- nsCertType = server
- nsComment = "OpenSSL Generated Server Certificate"
- subjectKeyIdentifier = hash
- authorityKeyIdentifier = keyid,issuer:always
- keyUsage = critical, digitalSignature, keyEncipherment
- extendedKeyUsage = serverAuth
- subjectAltName = @alt_names
- [ alt_names ]
- IP.1 = 10.10.60.1
- DNS.1 = appajava.server1.test.int.local
- DNS.2 = server1.test.int.local
- [ crl_ext ]
- # Extension for CRLs (`man x509v3_config`).
- authorityKeyIdentifier=keyid:always
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement