1
+ [ req ]
2
+ default_bits = 2048
3
+ default_keyfile = server-key.pem
4
+ distinguished_name = subject
5
+ req_extensions = req_ext
6
+ x509_extensions = x509_ext
7
+ string_mask = utf8only
8
+
9
+ # The Subject DN can be formed using X501 or RFC 4514 (see RFC 4519 for a description).
10
+ # Its sort of a mashup. For example, RFC 4514 does not provide emailAddress.
11
+ [ subject ]
12
+ countryName = US
13
+ stateOrProvinceName = NY
14
+ localityName = New York
15
+ organizationName = Example, LLC
16
+
17
+ # Use a friendly name here because its presented to the user. The server's DNS
18
+ # names are placed in Subject Alternate Names. Plus, DNS names here is deprecated
19
+ # by both IETF and CA/Browser Forums. If you place a DNS name here, then you
20
+ # must include the DNS name in the SAN too (otherwise, Chrome and others that
21
+ # strictly follow the CA/Browser Baseline Requirements will fail).
22
+ commonName = Example Company
23
+
24
+ emailAddress = test@example.com
25
+
26
+ # Section x509_ext is used when generating a self-signed certificate. I.e., openssl req -x509 ...
27
+ [ x509_ext ]
28
+
29
+ subjectKeyIdentifier = hash
30
+ authorityKeyIdentifier = keyid,issuer
31
+
32
+ basicConstraints = CA:FALSE
33
+ keyUsage = digitalSignature, keyEncipherment
34
+ extendedKeyUsage = clientAuth, serverAuth
35
+ subjectAltName = @alternate_names
36
+
37
+ # RFC 5280, Section 4.2.1.12 makes EKU optional
38
+ # CA/Browser Baseline Requirements, Appendix (B)(3)(G) makes me confused
39
+ # extendedKeyUsage = serverAuth, clientAuth
40
+
41
+ # Section req_ext is used when generating a certificate signing request. I.e., openssl req ...
42
+ [ req_ext ]
43
+
44
+ subjectKeyIdentifier = hash
45
+
46
+ basicConstraints = CA:FALSE
47
+ keyUsage = digitalSignature, keyEncipherment
48
+ extendedKeyUsage = clientAuth, serverAuth
49
+ subjectAltName = @alternate_names
50
+
51
+ # RFC 5280, Section 4.2.1.12 makes EKU optional
52
+ # CA/Browser Baseline Requirements, Appendix (B)(3)(G) makes me confused
53
+ # extendedKeyUsage = serverAuth, clientAuth
54
+
55
+ [ alternate_names ]
56
+
57
+ DNS.1 = python.org
58
+ DNS.2 = www.python.org
0 commit comments