]> git.ipfire.org Git - thirdparty/strongswan.git/blame - testing/hosts/winnetou/etc/openssl/ecdsa/openssl.cnf
Fixed some typos, courtesy of codespell
[thirdparty/strongswan.git] / testing / hosts / winnetou / etc / openssl / ecdsa / openssl.cnf
CommitLineData
1bd02e86
AS
1# openssl.cnf - OpenSSL configuration file for the ZHW PKI
2# Mario Strasser <mario.strasser@zhwin.ch>
1bd02e86
AS
3#
4
5# This definitions were set by the ca_init script DO NOT change
2db6d5b8 6# them manually.
1bd02e86
AS
7CAHOME = /etc/openssl/ecdsa
8RANDFILE = $CAHOME/.rand
9
10# Extra OBJECT IDENTIFIER info:
11oid_section = new_oids
12
13[ new_oids ]
14SmartcardLogin = 1.3.6.1.4.1.311.20.2
15ClientAuthentication = 1.3.6.1.4.1.311.20.2.2
16
17####################################################################
18
19[ ca ]
20default_ca = root_ca # The default ca section
21
22####################################################################
23
24[ root_ca ]
25
26dir = $CAHOME
27certs = $dir/certs # Where the issued certs are kept
28crl_dir = $dir/crl # Where the issued crl are kept
29database = $dir/index.txt # database index file.
30new_certs_dir = $dir/newcerts # default place for new certs.
31
32certificate = $dir/strongswan_ecCert.pem # The CA certificate
33serial = $dir/serial # The current serial number
34crl = $dir/crl.pem # The current CRL
35crlnumber = $dir/crlnumber # The current CRL serial number
36private_key = $dir/strongswan_ecKey.pem # The private key
37RANDFILE = $dir/.rand # private random number file
38
f3bb1bd0 39x509_extensions = host_ext # The extensions to add to the cert
1bd02e86 40
f3bb1bd0 41crl_extensions = crl_ext # The extensions to add to the CRL
1bd02e86
AS
42
43default_days = 1825 # how long to certify for
44default_crl_days= 30 # how long before next CRL
45default_md = sha256 # which md to use.
46preserve = no # keep passed DN ordering
47email_in_dn = no # allow/forbid EMail in DN
48
49policy = policy_match # specifying how similar the request must look
50
51####################################################################
52
53# the 'match' policy
54[ policy_match ]
55countryName = match
56stateOrProvinceName = optional
57localityName = optional
58organizationName = match
59organizationalUnitName = optional
60userId = optional
61serialNumber = optional
62commonName = supplied
63emailAddress = optional
64
65# the 'anything' policy
66[ policy_anything ]
67countryName = optional
68stateOrProvinceName = optional
69localityName = optional
70organizationName = optional
71organizationalUnitName = optional
72commonName = supplied
73emailAddress = optional
74
75####################################################################
76
77[ req ]
78default_bits = 1024
79default_keyfile = privkey.pem
80distinguished_name = req_distinguished_name
81attributes = req_attributes
f3bb1bd0 82x509_extensions = ca_ext # The extensions to add to the self signed cert
1bd02e86
AS
83# req_extensions = v3_req # The extensions to add to a certificate request
84
85
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!
94string_mask = nombstr
95
96# req_extensions = v3_req # The extensions to add to a certificate request
97
98####################################################################
99
100[ req_distinguished_name ]
101countryName = Country Name (2 letter code)
102countryName_default = CH
103countryName_min = 2
104countryName_max = 2
105
106#stateOrProvinceName = State or Province Name (full name)
107#stateOrProvinceName_default = ZH
108
109#localityName = Locality Name (eg, city)
110#localityName_default = Winterthur
111
112organizationName = Organization Name (eg, company)
113organizationName_default = Linux strongSwan
114
1150.organizationalUnitName = Organizational Unit Name (eg, section)
116#0.organizationalUnitName_default = Research
117
118#1.organizationalUnitName = Type (eg, Staff)
119#1.organizationalUnitName_default = Staff
120
121#userId = UID
122
123commonName = Common Name (eg, YOUR name)
124commonName_default = $ENV::COMMON_NAME
125commonName_max = 64
126
127#0.emailAddress = Email Address (eg, foo@bar.com)
128#0.emailAddress_min = 0
129#0.emailAddress_max = 40
130
131#1.emailAddress = Second Email Address (eg, foo@bar.com)
132#1.emailAddress_min = 0
133#1.emailAddress_max = 40
134
135####################################################################
136
137[ req_attributes ]
138
139####################################################################
140
141[ host_ext ]
142
143basicConstraints = CA:FALSE
144keyUsage = digitalSignature, keyEncipherment, keyAgreement
145subjectKeyIdentifier = hash
146authorityKeyIdentifier = keyid, issuer:always
147subjectAltName = DNS:$ENV::COMMON_NAME
148#extendedKeyUsage = OCSPSigning
149crlDistributionPoints = URI:http://crl.strongswan.org/strongswan_ec.crl
150
151####################################################################
152
153[ user_ext ]
154
155basicConstraints = CA:FALSE
156keyUsage = digitalSignature, keyEncipherment, keyAgreement
157subjectKeyIdentifier = hash
158authorityKeyIdentifier = keyid, issuer:always
159subjectAltName = email:$ENV::COMMON_NAME
160#authorityInfoAccess = OCSP;URI:http://ocsp.strongswan.org:8880
161crlDistributionPoints = URI:http://crl.strongswan.org/strongswan_ec.crl
162
163####################################################################
164
165[ ca_ext ]
166
167basicConstraints = critical, CA:TRUE
168keyUsage = cRLSign, keyCertSign
169subjectKeyIdentifier = hash
170authorityKeyIdentifier = keyid, issuer:always
171
172####################################################################
173
174[ crl_ext ]
175
176# CRL extensions.
177# Only issuerAltName and authorityKeyIdentifier make any sense in a CRL.
178
179#issuerAltName = issuer:copy
180authorityKeyIdentifier = keyid:always, issuer:always
181
182# eof