Skip to content

Commit 2fd924b

Browse files
committed
Add testdata files
1 parent f215d51 commit 2fd924b

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

testdata/fake-ca.cfg

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# OpenSSL configuration file.
2+
3+
[ req ]
4+
# Options for the `req` tool (`man req`).
5+
default_bits = 2048
6+
distinguished_name = req_distinguished_name
7+
prompt = no
8+
# SHA-1 is deprecated, so use SHA-2 instead.
9+
default_md = sha256
10+
# Extension to add when the -x509 option is used.
11+
x509_extensions = v3_ca
12+
# Try to force use of PrintableString throughout
13+
string_mask = pkix
14+
15+
[ req_distinguished_name ]
16+
C=GB
17+
ST=London
18+
L=London
19+
O=Google
20+
OU=Eng
21+
CN=FakeCertificateAuthority
22+
23+
[ v3_ca ]
24+
subjectKeyIdentifier = 01020304
25+
authorityKeyIdentifier = keyid:always,issuer
26+
basicConstraints = critical, CA:true, pathlen:10
27+
keyUsage = critical, digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment, keyAgreement, keyCertSign, cRLSign, encipherOnly, decipherOnly
28+
29+
[ v3_int_ca ]
30+
subjectKeyIdentifier = 05060708
31+
authorityKeyIdentifier = keyid:always,issuer
32+
basicConstraints = critical, CA:true, pathlen:0
33+
keyUsage = critical, digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment, keyAgreement, keyCertSign, cRLSign, encipherOnly, decipherOnly
34+
extendedKeyUsage = serverAuth,clientAuth
35+
36+
[ v3_int_ca_pair ]
37+
subjectKeyIdentifier = 0a0b0c0d
38+
authorityKeyIdentifier = keyid:always,issuer
39+
basicConstraints = critical, CA:true
40+
keyUsage = critical, digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment, keyAgreement, keyCertSign, cRLSign, encipherOnly, decipherOnly
41+
extendedKeyUsage = serverAuth,clientAuth
42+
43+
[ v3_ca1 ]
44+
subjectKeyIdentifier = 11121314
45+
authorityKeyIdentifier = keyid:always,issuer
46+
basicConstraints = critical, CA:true, pathlen:10
47+
keyUsage = critical, digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment, keyAgreement, keyCertSign, cRLSign, encipherOnly, decipherOnly
48+
49+
[ v3_user ]
50+
subjectKeyIdentifier = hash
51+
authorityKeyIdentifier = keyid:always,issuer
52+
keyUsage = critical, digitalSignature, nonRepudiation, keyEncipherment, dataEncipherment, keyAgreement, encipherOnly, decipherOnly

testdata/fake-ca.privkey.pem

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
-----BEGIN EC PRIVATE KEY-----
2+
Proc-Type: 4,ENCRYPTED
3+
DEK-Info: DES-CBC,53C67AA311B73ED1
4+
5+
UgdxD/ThmtBjRklM1aU8qxCM3yvVYrl4NzudKE4NCQjYR7u0OhE3OD6XShPghtRU
6+
RM8ekP81zIPEUS6H/V5ysbwDtwibQ4/kw85lOVEoNdqDCMV++M3aEFiV8RA0hj+q
7+
x8ANosBgtEVsbC1LwOk0/yrvUFucrp5FuHSxJ3//9iI=
8+
-----END EC PRIVATE KEY-----

testdata/hammer.cfg

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
config {
2+
roots_pem_file: ""
3+
public_key: {
4+
der: "0Y0\x13\x06\x07*\x86H\xce=\x02\x01\x06\b*\x86H\xce=\x03\x01\x07\x03B\0\x04\x07\xf8Q\xaf\xaa\x8cV\x83\x901\xb7\x80\xe3\xd6\x1a\xf7/6\x06q\xec\xdd;\xbe~6o\r\x1c\x1c`\x0b\x7f\xf5\x9f\xff\xe5$I4V\xf2K\x10_\xbf\b\x1f\xf9\x0e\xcf5\xb5\x8a\x8a\x8b0\nT\xb7\xbf\x1dM\xb9"
5+
}
6+
}

0 commit comments

Comments
 (0)