|
| 1 | +[ ca ] |
| 2 | +default_ca = CA_default |
| 3 | + |
| 4 | +[ CA_default ] |
| 5 | +dir = . |
| 6 | +certs = $dir/certs |
| 7 | +crl_dir = $dir/crl |
| 8 | +new_certs_dir = $dir/newcerts |
| 9 | +database = $dir/index.txt |
| 10 | +serial = $dir/serial |
| 11 | +RANDFILE = $dir/private/.rand |
| 12 | + |
| 13 | +private_key = $dir/private/ca-key.pem |
| 14 | +certificate = $dir/certs/ca-cert.pem |
| 15 | + |
| 16 | +default_days = 3650 |
| 17 | +default_crl_days = 30 |
| 18 | +default_md = sha256 |
| 19 | +preserve = no |
| 20 | + |
| 21 | +policy = policy_match |
| 22 | + |
| 23 | +[ policy_match ] |
| 24 | +countryName = optional |
| 25 | +stateOrProvinceName = optional |
| 26 | +organizationName = optional |
| 27 | +organizationalUnitName = optional |
| 28 | +commonName = supplied |
| 29 | +emailAddress = optional |
| 30 | + |
| 31 | +[ req ] |
| 32 | +default_bits = 2048 |
| 33 | +default_md = sha256 |
| 34 | +default_keyfile = privkey.pem |
| 35 | +distinguished_name = req_distinguished_name |
| 36 | +x509_extensions = v3_ca |
| 37 | +req_extensions = v3_req |
| 38 | + |
| 39 | +[ req_distinguished_name ] |
| 40 | +countryName = Country Name (2 letter code) |
| 41 | +countryName_default = JP |
| 42 | +stateOrProvinceName = State or Province Name (full name) |
| 43 | +stateOrProvinceName_default = Tokyo |
| 44 | +localityName = Locality Name (eg, city) |
| 45 | +localityName_default = Tokyo |
| 46 | +organizationName = Organization Name (eg, company) |
| 47 | +organizationName_default = MyOrganization |
| 48 | +commonName = Common Name (eg, YOUR name) |
| 49 | +commonName_max = 64 |
| 50 | + |
| 51 | +[ v3_ca ] |
| 52 | +subjectKeyIdentifier=hash |
| 53 | +authorityKeyIdentifier=keyid:always,issuer |
| 54 | +basicConstraints = critical,CA:true |
| 55 | + |
| 56 | +[ v3_req ] |
| 57 | +basicConstraints = CA:FALSE |
| 58 | +keyUsage = nonRepudiation, digitalSignature, keyEncipherment |
| 59 | +extendedKeyUsage = serverAuth, clientAuth |
0 commit comments