|
| 1 | +[ca] |
| 2 | +default_ca = ca-1 |
| 3 | + |
| 4 | +[ca_policy] |
| 5 | + |
| 6 | +[ca-1] |
| 7 | +dir = ./ |
| 8 | +new_certs_dir = $dir |
| 9 | +certificate = $dir/ca-1.root.crt |
| 10 | +private_key = $dir/ca-1.key |
| 11 | + |
| 12 | +database = $dir/certindex |
| 13 | +serial = $dir/serial |
| 14 | +default_days = 3650 |
| 15 | +default_md = sha512 |
| 16 | +policy = ca_policy |
| 17 | + |
| 18 | +[intermediate] |
| 19 | +dir = ./ |
| 20 | +new_certs_dir = $dir |
| 21 | +certificate = $dir/ca.intermediate.crt |
| 22 | +private_key = $dir/ca.key |
| 23 | + |
| 24 | +database = $dir/certindex |
| 25 | +serial = $dir/serial |
| 26 | +default_days = 3650 |
| 27 | +default_md = sha512 |
| 28 | +policy = ca_policy |
| 29 | + |
| 30 | +[self] |
| 31 | +dir = ./ |
| 32 | +new_certs_dir = $dir |
| 33 | +#certificate = $dir/ca.intermediate.crt |
| 34 | +private_key = $dir/self.term.key |
| 35 | + |
| 36 | +database = $dir/certindex |
| 37 | +serial = $dir/serial |
| 38 | +default_days = 3650 |
| 39 | +default_md = sha512 |
| 40 | +policy = ca_policy |
| 41 | + |
| 42 | +[req] |
| 43 | +distinguished_name = req_distinguished_name |
| 44 | +prompt = no |
| 45 | + |
| 46 | +[req_distinguished_name] |
| 47 | +countryName = US |
| 48 | +stateOrProvinceName = New York |
| 49 | +localityName = Nowhere |
| 50 | +organizationName = Github |
| 51 | +emailAddress = mathstuf+keyutils@gmail.com |
| 52 | + |
| 53 | +[v3_root_ca] |
| 54 | +# Extensions for a typical CA (`man x509v3_config`). |
| 55 | +subjectKeyIdentifier = hash |
| 56 | +authorityKeyIdentifier = keyid:always,issuer |
| 57 | +basicConstraints = critical, CA:true |
| 58 | +keyUsage = critical, digitalSignature, cRLSign, keyCertSign |
| 59 | + |
| 60 | +[v3_intermediate_ca] |
| 61 | +# Extensions for a typical intermediate CA (`man x509v3_config`). |
| 62 | +subjectKeyIdentifier = hash |
| 63 | +authorityKeyIdentifier = keyid:always,issuer |
| 64 | +basicConstraints = critical, CA:true, pathlen:0 |
| 65 | +keyUsage = critical, digitalSignature, cRLSign, keyCertSign |
| 66 | + |
| 67 | +[v3_server_cert] |
| 68 | +# Extensions for server certificates (`man x509v3_config`). |
| 69 | +basicConstraints = CA:FALSE |
| 70 | +nsCertType = server |
| 71 | +nsComment = "OpenSSL Generated Server Certificate" |
| 72 | +subjectKeyIdentifier = hash |
| 73 | +authorityKeyIdentifier = keyid,issuer:always |
| 74 | +keyUsage = critical, digitalSignature, keyEncipherment |
| 75 | +extendedKeyUsage = serverAuth |
0 commit comments