-
Notifications
You must be signed in to change notification settings - Fork 1
/
openssl_postfix.conf.in
91 lines (73 loc) · 2.21 KB
/
openssl_postfix.conf.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
[ ca ]
default_ca = CA_default
[ CA_default ]
dir = /etc/postfix/ssl
certs = $dir/certs
crl_dir = $dir/crl
database = $dir/index.txt
new_certs_dir = $dir/newcerts
certificate = $dir/cacert.pem
serial = $dir/serial
crl = $dir/crl.pem
private_key = $dir/private/cakey.pem
RANDFILE = $dir/private/.rand
x509_extensions = usr_cert
default_days = 2000
default_md = default
policy = policy_anything
[ policy_anything ]
countryName=optional
stateOrProvinceName=optional
localityName=optional
organizationName=optional
organizationalUnitName=optional
commonName=optional
emailAddress=optional
[ req ]
default_bits = 4096
default_keyfile = privkey.pem
distinguished_name = req_distinguished_name
attributes = req_attributes
x509_extensions = v3_ca
prompt = no
output_password = mypass
[ req_distinguished_name ]
countryName = @POSTFIX_SSL_COUNTRY@
stateOrProvinceName = @POSTFIX_SSL_STATE@
localityName = @POSTFIX_SSL_LOCALITY@
organizationName = @POSTFIX_SSL_ORGANIZATION@
organizationalUnitName = @POSTFIX_SSL_ORGANIZATIONAL_UNIT@
commonName = @POSTFIX_SSL_COMMON_NAME@
emailAddress = @POSTFIX_SSL_EMAIL_ADDRESS@
[ req_attributes ]
challengePassword = @RANDOM@ challenge password
[ server_cert ]
basicConstraints=CA:FALSE
nsCertType = server
nsComment = @COMMENT@
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer:always
subjectAltName=email:copy
issuerAltName=issuer:copy
[ client_cert ]
basicConstraints=CA:FALSE
nsCertType = client, email
nsComment = @COMMENT@
keyUsage = nonRepudiation, digitalSignature, keyEncipherment
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer:always
subjectAltName=email:copy
issuerAltName=issuer:copy
[ v3_ca ]
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid:always,issuer:always
basicConstraints = CA:true
keyUsage = cRLSign, keyCertSign
nsCertType = sslCA, emailCA
subjectAltName=email:copy
issuerAltName=issuer:copy
[ usr_cert ]
basicConstraints=CA:FALSE
nsComment = @COMMENT@
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid,issuer:always