blob: 538325645f2e1e3ffb4a1cfe5b9b978165c1592f (
plain) (
blame)
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
|
# The key and certificate .pem files here were generated using GnuTLS certtool and the accompanying
# template files. (Note that the ed25519 files needed GnuTLS 3.6+, 3.6.12+ for ed448)
# CA (signing) credentials:
certtool --generate-privkey --outfile x509-ca-key-dsa.pem \
--pkcs8 --password '' --dsa --bits 2048
certtool --generate-self-signed --template ca.tmpl --outfile x509-ca-dsa.pem \
--load-privkey x509-ca-key-dsa.pem --hash sha256
certtool --generate-privkey --outfile x509-ca-key-ecdsa.pem \
--pkcs8 --password '' --ecdsa --curve secp256r1
certtool --generate-self-signed --template ca.tmpl --outfile x509-ca-ecdsa.pem \
--load-privkey x509-ca-key-ecdsa.pem --hash sha256
certtool --generate-privkey --outfile x509-ca-key-ed25519.pem \
--pkcs8 --password '' --key-type=ed25519
certtool --generate-self-signed --template ca.tmpl --outfile x509-ca-ed25519.pem \
--load-privkey x509-ca-key-ed25519.pem
certtool --generate-privkey --outfile x509-ca-key-ed448.pem \
--pkcs8 --password '' --key-type=ed448
certtool --generate-self-signed --template ca.tmpl --outfile x509-ca-ed448.pem \
--load-privkey x509-ca-key-ed448.pem
certtool --generate-privkey --outfile x509-ca-key-rsa.pem \
--pkcs8 --password '' --rsa --bits 2048
certtool --generate-self-signed --template ca.tmpl --outfile x509-ca-rsa.pem \
--load-privkey x509-ca-key-rsa.pem --hash sha256
certtool --generate-privkey --outfile x509-ca-key-rsa_pss_256.pem \
--pkcs8 --password '' --key-type='rsa-pss' --bits=2048 --hash=sha256 --salt-size=32
certtool --generate-self-signed --template ca.tmpl --outfile x509-ca-rsa_pss_256.pem \
--load-privkey x509-ca-key-rsa_pss_256.pem
certtool --generate-privkey --outfile x509-ca-key-rsa_pss_384.pem \
--pkcs8 --password '' --key-type='rsa-pss' --bits=2048 --hash=sha384 --salt-size=48
certtool --generate-self-signed --template ca.tmpl --outfile x509-ca-rsa_pss_384.pem \
--load-privkey x509-ca-key-rsa_pss_384.pem
certtool --generate-privkey --outfile x509-ca-key-rsa_pss_512.pem \
--pkcs8 --password '' --key-type='rsa-pss' --bits=2048 --hash=sha512 --salt-size=64
certtool --generate-self-signed --template ca.tmpl --outfile x509-ca-rsa_pss_512.pem \
--load-privkey x509-ca-key-rsa_pss_512.pem
# Client agreement credentials:
certtool --generate-privkey --outfile x509-client-key-ecdh.pem \
--pkcs8 --password '' --ecc --curve secp256r1
certtool --generate-certificate --template client_agree.tmpl --outfile x509-client-ecdh.pem \
--load-privkey x509-client-key-ecdh.pem --hash sha256 \
--load-ca-privkey x509-ca-key-ecdsa.pem --load-ca-certificate x509-ca-ecdsa.pem
# Client signing credentials:
certtool --generate-privkey --outfile x509-client-key-dsa.pem \
--pkcs8 --password '' --dsa --bits 2048
certtool --generate-certificate --template client_sign.tmpl --outfile x509-client-dsa.pem \
--load-privkey x509-client-key-dsa.pem --hash sha256 \
--load-ca-privkey x509-ca-key-dsa.pem --load-ca-certificate x509-ca-dsa.pem
certtool --generate-privkey --outfile x509-client-key-ecdsa.pem \
--pkcs8 --password '' --ecdsa --curve secp256r1
certtool --generate-certificate --template client_sign.tmpl --outfile x509-client-ecdsa.pem \
--load-privkey x509-client-key-ecdsa.pem --hash sha256 \
--load-ca-privkey x509-ca-key-ecdsa.pem --load-ca-certificate x509-ca-ecdsa.pem
certtool --generate-privkey --outfile x509-client-key-ed25519.pem \
--pkcs8 --password '' --key-type=ed25519
certtool --generate-certificate --template client_sign.tmpl --outfile x509-client-ed25519.pem \
--load-privkey x509-client-key-ed25519.pem \
--load-ca-privkey x509-ca-key-ed25519.pem --load-ca-certificate x509-ca-ed25519.pem
certtool --generate-privkey --outfile x509-client-key-ed448.pem \
--pkcs8 --password '' --key-type=ed448
certtool --generate-certificate --template client_sign.tmpl --outfile x509-client-ed448.pem \
--load-privkey x509-client-key-ed448.pem \
--load-ca-privkey x509-ca-key-ed448.pem --load-ca-certificate x509-ca-ed448.pem
certtool --generate-privkey --outfile x509-client-key-rsa.pem \
--pkcs8 --password '' --rsa --bits 2048
certtool --generate-certificate --template client_sign.tmpl --outfile x509-client-rsa.pem \
--load-privkey x509-client-key-rsa.pem --hash sha256 \
--load-ca-privkey x509-ca-key-rsa.pem --load-ca-certificate x509-ca-rsa.pem
certtool --generate-privkey --outfile x509-client-key-rsa_pss_256.pem \
--pkcs8 --password '' --key-type='rsa-pss' --bits=2048 --hash=sha256 --salt-size=32
certtool --generate-certificate --template client_sign.tmpl \
--outfile x509-client-rsa_pss_256.pem \
--load-privkey x509-client-key-rsa_pss_256.pem \
--load-ca-privkey x509-ca-key-rsa_pss_256.pem \
--load-ca-certificate x509-ca-rsa_pss_256.pem
certtool --generate-privkey --outfile x509-client-key-rsa_pss_384.pem \
--pkcs8 --password '' --key-type='rsa-pss' --bits=2048 --hash=sha384 --salt-size=48
certtool --generate-certificate --template client_sign.tmpl \
--outfile x509-client-rsa_pss_384.pem \
--load-privkey x509-client-key-rsa_pss_384.pem \
--load-ca-privkey x509-ca-key-rsa_pss_384.pem \
--load-ca-certificate x509-ca-rsa_pss_384.pem
certtool --generate-privkey --outfile x509-client-key-rsa_pss_512.pem \
--pkcs8 --password '' --key-type='rsa-pss' --bits=2048 --hash=sha512 --salt-size=64
certtool --generate-certificate --template client_sign.tmpl \
--outfile x509-client-rsa_pss_512.pem \
--load-privkey x509-client-key-rsa_pss_512.pem \
--load-ca-privkey x509-ca-key-rsa_pss_512.pem \
--load-ca-certificate x509-ca-rsa_pss_512.pem
# Server agreement credentials:
certtool --generate-privkey --outfile x509-server-key-ecdh.pem \
--pkcs8 --password '' --ecc --curve secp256r1
certtool --generate-certificate --template server_agree.tmpl --outfile x509-server-ecdh.pem \
--load-privkey x509-server-key-ecdh.pem --hash sha256 \
--load-ca-privkey x509-ca-key-ecdsa.pem --load-ca-certificate x509-ca-ecdsa.pem
# Server encryption credentials:
certtool --generate-privkey --outfile x509-server-key-rsa-enc.pem \
--pkcs8 --password '' --rsa --bits 2048
certtool --generate-certificate --outfile x509-server-rsa-enc.pem \
--load-privkey x509-server-key-rsa-enc.pem --template server_enc.tmpl \
--load-ca-privkey x509-ca-key-rsa.pem --load-ca-certificate x509-ca-rsa.pem \
--hash sha256
# Server signing credentials:
certtool --generate-privkey --outfile x509-server-key-dsa.pem \
--pkcs8 --password '' --dsa --bits 2048
certtool --generate-certificate --template server_sign.tmpl --outfile x509-server-dsa.pem \
--load-privkey x509-server-key-dsa.pem --hash sha256 \
--load-ca-privkey x509-ca-key-dsa.pem --load-ca-certificate x509-ca-dsa.pem
certtool --generate-privkey --outfile x509-server-key-ecdsa.pem \
--pkcs8 --password '' --ecdsa --curve secp256r1
certtool --generate-certificate --template server_sign.tmpl --outfile x509-server-ecdsa.pem \
--load-privkey x509-server-key-ecdsa.pem --hash sha256 \
--load-ca-privkey x509-ca-key-ecdsa.pem --load-ca-certificate x509-ca-ecdsa.pem
certtool --generate-privkey --outfile x509-server-key-ed25519.pem \
--pkcs8 --password '' --key-type=ed25519
certtool --generate-certificate --template server_sign.tmpl --outfile x509-server-ed25519.pem \
--load-privkey x509-server-key-ed25519.pem \
--load-ca-privkey x509-ca-key-ed25519.pem --load-ca-certificate x509-ca-ed25519.pem
certtool --generate-privkey --outfile x509-server-key-ed448.pem \
--pkcs8 --password '' --key-type=ed448
certtool --generate-certificate --template server_sign.tmpl --outfile x509-server-ed448.pem \
--load-privkey x509-server-key-ed448.pem \
--load-ca-privkey x509-ca-key-ed448.pem --load-ca-certificate x509-ca-ed448.pem
certtool --generate-privkey --outfile x509-server-key-rsa-sign.pem \
--pkcs8 --password '' --rsa --bits 2048
certtool --generate-certificate --template server_sign.tmpl --outfile x509-server-rsa-sign.pem \
--load-privkey x509-server-key-rsa-sign.pem --hash sha256 \
--load-ca-privkey x509-ca-key-rsa.pem --load-ca-certificate x509-ca-rsa.pem
certtool --generate-privkey --outfile x509-server-key-rsa_pss_256.pem \
--pkcs8 --password '' --key-type='rsa-pss' --bits=2048 --hash=sha256 --salt-size=32
certtool --generate-certificate --template server_sign.tmpl \
--outfile x509-server-rsa_pss_256.pem \
--load-privkey x509-server-key-rsa_pss_256.pem \
--load-ca-privkey x509-ca-key-rsa_pss_256.pem \
--load-ca-certificate x509-ca-rsa_pss_256.pem
certtool --generate-privkey --outfile x509-server-key-rsa_pss_384.pem \
--pkcs8 --password '' --key-type='rsa-pss' --bits=2048 --hash=sha384 --salt-size=48
certtool --generate-certificate --template server_sign.tmpl \
--outfile x509-server-rsa_pss_384.pem \
--load-privkey x509-server-key-rsa_pss_384.pem \
--load-ca-privkey x509-ca-key-rsa_pss_384.pem \
--load-ca-certificate x509-ca-rsa_pss_384.pem
certtool --generate-privkey --outfile x509-server-key-rsa_pss_512.pem \
--pkcs8 --password '' --key-type='rsa-pss' --bits=2048 --hash=sha512 --salt-size=64
certtool --generate-certificate --template server_sign.tmpl \
--outfile x509-server-rsa_pss_512.pem \
--load-privkey x509-server-key-rsa_pss_512.pem \
--load-ca-privkey x509-ca-key-rsa_pss_512.pem \
--load-ca-certificate x509-ca-rsa_pss_512.pem
|