2 # OpenSSL example configuration file.
3 # This is mostly being used for generation of certificate requests.
6 RANDFILE = $ENV::HOME/.rnd
7 oid_file = $ENV::HOME/.oid
10 # To use this configuration file with the "-extfile" option of the
11 # "openssl x509" utility, name here the section containing the
12 # X.509v3 extensions to use:
14 # (Alternatively, use a configuration file that has only
15 # X.509v3 extensions in its main [= default] section.)
19 # We can add new OIDs in here for use by 'ca' and 'req'.
20 # Add a simple OID like this:
22 # Or use config file substitution like this:
23 # testoid2=${testoid1}.5.6
25 ####################################################################
27 default_ca = CA_default # The default ca section
29 ####################################################################
32 dir = ./demoCA # Where everything is kept
33 certs = $dir/certs # Where the issued certs are kept
34 crl_dir = $dir/crl # Where the issued crl are kept
35 database = $dir/index.txt # database index file.
36 new_certs_dir = $dir/newcerts # default place for new certs.
38 certificate = $dir/cacert.pem # The CA certificate
39 serial = $dir/serial # The current serial number
40 crl = $dir/crl.pem # The current CRL
41 private_key = $dir/private/cakey.pem# The private key
42 RANDFILE = $dir/private/.rand # private random number file
44 x509_extensions = usr_cert # The extentions to add to the cert
45 crl_extensions = crl_ext # Extensions to add to CRL
46 default_days = 365 # how long to certify for
47 default_crl_days= 30 # how long before next CRL
48 default_md = md5 # which md to use.
49 preserve = no # keep passed DN ordering
51 # A few difference way of specifying how similar the request should look
52 # For type CA, the listed attributes must be the same, and the optional
53 # and supplied fields are just that :-)
59 stateOrProvinceName = match
60 organizationName = match
61 organizationalUnitName = optional
63 emailAddress = optional
65 # For the 'anything' policy
66 # At this point in time, you must list all acceptable 'object'
69 countryName = optional
70 stateOrProvinceName = optional
71 localityName = optional
72 organizationName = optional
73 organizationalUnitName = optional
75 emailAddress = optional
77 ####################################################################
80 default_keyfile = privkey.pem
81 distinguished_name = req_distinguished_name
82 attributes = req_attributes
83 x509_extensions = v3_ca # The extentions to add to the self signed cert
85 [ req_distinguished_name ]
86 countryName = Country Name (2 letter code)
87 countryName_default = AU
91 stateOrProvinceName = State or Province Name (full name)
92 stateOrProvinceName_default = Some-State
94 localityName = Locality Name (eg, city)
96 0.organizationName = Organization Name (eg, company)
97 0.organizationName_default = Internet Widgits Pty Ltd
99 # we can do this but it is not needed normally :-)
100 #1.organizationName = Second Organization Name (eg, company)
101 #1.organizationName_default = World Wide Web Pty Ltd
103 organizationalUnitName = Organizational Unit Name (eg, section)
104 #organizationalUnitName_default =
106 commonName = Common Name (eg, YOUR name)
109 emailAddress = Email Address
110 emailAddress_max = 40
112 # SET-ex3 = SET extension number 3
115 challengePassword = A challenge password
116 challengePassword_min = 4
117 challengePassword_max = 20
119 unstructuredName = An optional company name
123 # These extensions are added when 'ca' signs a request.
125 # This goes against PKIX guidelines but some CAs do it and some software
126 # requires this to avoid interpreting an end user certificate as a CA.
128 basicConstraints=CA:FALSE
130 # Here are some examples of the usage of nsCertType. If it is omitted
131 # the certificate can be used for anything *except* object signing.
133 # This is OK for an SSL server.
136 # For an object signing certificate this would be used.
137 #nsCertType = objsign
139 # For normal client use this is typical
140 #nsCertType = client, email
142 # This is typical also
144 keyUsage = nonRepudiation, digitalSignature, keyEncipherment
146 nsComment = "OpenSSL Generated Certificate"
148 # PKIX recommendations
149 subjectKeyIdentifier=hash
150 authorityKeyIdentifier=keyid,issuer:always
152 # Import the email address.
154 subjectAltName=email:copy
156 # Copy subject details
158 issuerAltName=issuer:copy
160 #nsCaRevocationUrl = http://www.domain.dom/ca-crl.pem
169 # Extensions for a typical CA
171 # It's a CA certificate
172 basicConstraints = CA:true
174 # PKIX recommendation.
176 subjectKeyIdentifier=hash
178 authorityKeyIdentifier=keyid:always,issuer:always
180 # This is what PKIX recommends but some broken software chokes on critical
182 #basicConstraints = critical,CA:true
184 # Key usage: again this should really be critical.
185 keyUsage = cRLSign, keyCertSign
187 # Some might want this also
188 #nsCertType = sslCA, emailCA
190 # Include email address in subject alt name: another PKIX recommendation
191 subjectAltName=email:copy
192 # Copy issuer details
193 issuerAltName=issuer:copy
195 # RAW DER hex encoding of an extension: beware experts only!
197 # You can even override a supported extension:
198 # basicConstraints= critical, RAW:30:03:01:01:FF
203 # Only issuerAltName and authorityKeyIdentifier make any sense in a CRL.
205 issuerAltName=issuer:copy
206 authorityKeyIdentifier=keyid:always,issuer:always