Mercurial > hg
comparison tests/sslcerts/README @ 29331:1e02d9576194
tests: extract SSL certificates from test-https.t
They can be reused in SMTPS tests.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Fri, 27 May 2016 22:40:09 +0900 |
parents | |
children | 9d02bed8477b |
comparison
equal
deleted
inserted
replaced
29330:12c97985ddeb | 29331:1e02d9576194 |
---|---|
1 Certificates created with: | |
2 printf '.\n.\n.\n.\n.\nlocalhost\nhg@localhost\n' | \ | |
3 openssl req -newkey rsa:512 -keyout priv.pem -nodes -x509 -days 9000 -out pub.pem | |
4 Can be dumped with: | |
5 openssl x509 -in pub.pem -text | |
6 | |
7 - priv.pem | |
8 - pub.pem | |
9 - pub-other.pem | |
10 | |
11 pub.pem patched with other notBefore / notAfter: | |
12 | |
13 - pub-not-yet.pem | |
14 - pub-expired.pem | |
15 | |
16 Client certificates created with: | |
17 openssl genrsa -aes128 -passout pass:1234 -out client-key.pem 512 | |
18 openssl rsa -in client-key.pem -passin pass:1234 -out client-key-decrypted.pem | |
19 printf '.\n.\n.\n.\n.\n.\nhg-client@localhost\n.\n.\n' | \ | |
20 openssl req -new -key client-key.pem -passin pass:1234 -out client-csr.pem | |
21 openssl x509 -req -days 9000 -in client-csr.pem -CA pub.pem -CAkey priv.pem \ | |
22 -set_serial 01 -out client-cert.pem | |
23 | |
24 - client-key.pem | |
25 - client-key-decrypted.pem | |
26 - client-cert.pem |