1 # openssl.cnf - OpenSSL configuration file for the ZHW PKI
2 # Mario Strasser <mario.strasser@zhwin.ch>
4 # $Id: openssl.cnf,v 1.1 2005/03/24 11:24:07 as Exp $
7 # This definitions were set by the ca_init script DO NOT change
9 CAHOME = /etc/openssl/sales
10 RANDFILE = $CAHOME/.rand
12 # Extra OBJECT IDENTIFIER info:
13 oid_section = new_oids
16 SmartcardLogin = 1.3.6.1.4.1.311.20.2
17 ClientAuthentication = 1.3.6.1.4.1.311.20.2.2
19 ####################################################################
22 default_ca = root_ca # The default ca section
24 ####################################################################
29 certs = $dir/certs # Where the issued certs are kept
30 crl_dir = $dir/crl # Where the issued crl are kept
31 database = $dir/index.txt # database index file.
32 new_certs_dir = $dir/newcerts # default place for new certs.
34 certificate = $dir/salesCert.pem # The CA certificate
35 serial = $dir/serial # The current serial number
36 crl = $dir/crl.pem # The current CRL
37 private_key = $dir/salesKey.pem # The private key
38 RANDFILE = $dir/.rand # private random number file
40 x509_extensions = host_ext # The extentions to add to the cert
42 crl_extensions = crl_ext # The extentions to add to the CRL
44 default_days = 1825 # how long to certify for
45 default_crl_days= 30 # how long before next CRL
46 default_md = sha1 # which md to use.
47 preserve = no # keep passed DN ordering
48 email_in_dn = no # allow/forbid EMail in DN
50 policy = policy_match # specifying how similar the request must look
52 ####################################################################
57 stateOrProvinceName = optional
58 localityName = optional
59 organizationName = match
60 organizationalUnitName = optional
63 emailAddress = optional
65 # the 'anything' policy
67 countryName = optional
68 stateOrProvinceName = optional
69 localityName = optional
70 organizationName = optional
71 organizationalUnitName = optional
73 emailAddress = optional
75 ####################################################################
79 default_keyfile = privkey.pem
80 distinguished_name = req_distinguished_name
81 attributes = req_attributes
82 x509_extensions = ca_ext # The extentions to add to the self signed cert
83 # req_extensions = v3_req # The extensions to add to a certificate request
86 # This sets a mask for permitted string types. There are several options.
87 # default: PrintableString, T61String, BMPString.
88 # pkix : PrintableString, BMPString.
89 # utf8only: only UTF8Strings.
90 # nombstr : PrintableString, T61String (no BMPStrings or UTF8Strings).
91 # MASK:XXXX a literal mask value.
92 # WARNING: current versions of Netscape crash on BMPStrings or UTF8Strings
93 # so use this option with caution!
96 # req_extensions = v3_req # The extensions to add to a certificate request
98 ####################################################################
100 [ req_distinguished_name ]
101 countryName = Country Name (2 letter code)
102 countryName_default = CH
106 #stateOrProvinceName = State or Province Name (full name)
107 #stateOrProvinceName_default = ZH
109 #localityName = Locality Name (eg, city)
110 #localityName_default = Winterthur
112 organizationName = Organization Name (eg, company)
113 organizationName_default = Linux strongSwan
115 0.organizationalUnitName = Organizational Unit Name (eg, section)
116 0.organizationalUnitName_default = Sales
118 #1.organizationalUnitName = Type (eg, Staff)
119 #1.organizationalUnitName_default = Staff
123 commonName = Common Name (eg, YOUR name)
124 commonName_default = $ENV::COMMON_NAME
127 #0.emailAddress = Email Address (eg, foo@bar.com)
128 #0.emailAddress_min = 0
129 #0.emailAddress_max = 40
131 #1.emailAddress = Second Email Address (eg, foo@bar.com)
132 #1.emailAddress_min = 0
133 #1.emailAddress_max = 40
135 ####################################################################
139 ####################################################################
143 basicConstraints = CA:FALSE
144 keyUsage = digitalSignature, keyEncipherment, keyAgreement
145 subjectKeyIdentifier = hash
146 authorityKeyIdentifier = keyid, issuer:always
147 subjectAltName = DNS:$ENV::COMMON_NAME
148 #extendedKeyUsage = OCSPSigning
149 crlDistributionPoints = URI:http://crl.strongswan.org/sales.crl
151 ####################################################################
155 basicConstraints = CA:FALSE
156 keyUsage = digitalSignature, keyEncipherment, keyAgreement
157 subjectKeyIdentifier = hash
158 authorityKeyIdentifier = keyid, issuer:always
159 subjectAltName = email:$ENV::COMMON_NAME
160 crlDistributionPoints = URI:http://crl.strongswan.org/sales.crl
162 ####################################################################
166 basicConstraints = critical, CA:TRUE
167 keyUsage = cRLSign, keyCertSign
168 subjectKeyIdentifier = hash
169 authorityKeyIdentifier = keyid, issuer:always
171 ####################################################################
176 # Only issuerAltName and authorityKeyIdentifier make any sense in a CRL.
178 #issuerAltName = issuer:copy
179 authorityKeyIdentifier = keyid:always, issuer:always