Skip to content

Commit fb574a2

Browse files
authored
Merge pull request #18 from easyops-cn/cert_info
chore(): dump test cert info
2 parents fafe629 + b0d4c28 commit fb574a2

File tree

4 files changed

+163
-0
lines changed

4 files changed

+163
-0
lines changed

gmtls/gmcredentials/testdata/ca.cert

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
1+
Certificate:
2+
Data:
3+
Version: 3 (0x2)
4+
Serial Number:
5+
c4:28:a0:80:65:69:39:ef
6+
Signature Algorithm: SM2-with-SM3
7+
Issuer: C=CN, ST=Shang Hai, O=example.com, CN=example.com
8+
Validity
9+
Not Before: Oct 26 14:27:29 2020 GMT
10+
Not After : Oct 24 14:27:29 2030 GMT
11+
Subject: C=CN, ST=Shang Hai, O=example.com, CN=example.com
12+
Subject Public Key Info:
13+
Public Key Algorithm: id-ecPublicKey
14+
Public-Key: (256 bit)
15+
pub:
16+
04:b1:0b:b2:e6:6f:24:84:4e:06:58:0e:61:ca:24:
17+
62:3a:ed:65:e3:11:24:29:97:c1:7f:a2:84:3e:af:
18+
97:fa:4e:b2:a9:e3:3e:60:8e:3e:2e:02:5f:ca:9f:
19+
79:70:bd:ab:54:38:78:93:1a:29:0f:22:64:42:41:
20+
21:4a:dd:fc:59
21+
ASN1 OID: SM2
22+
X509v3 extensions:
23+
X509v3 Subject Key Identifier:
24+
78:EF:54:88:B1:EB:19:CB:F0:7D:D9:6E:8D:6D:67:AB:8A:81:1C:AD
25+
X509v3 Authority Key Identifier:
26+
keyid:78:EF:54:88:B1:EB:19:CB:F0:7D:D9:6E:8D:6D:67:AB:8A:81:1C:AD
27+
28+
X509v3 Basic Constraints: critical
29+
CA:TRUE
30+
X509v3 Key Usage: critical
31+
Digital Signature, Certificate Sign, CRL Sign
32+
Signature Algorithm: SM2-with-SM3
33+
30:45:02:20:46:fe:9b:8b:41:5a:16:29:4c:33:75:69:67:d3:
34+
06:2e:33:c1:0b:8d:90:fe:03:98:af:63:98:4c:b5:ed:e9:ef:
35+
02:21:00:c7:d9:c1:7d:9a:a8:c1:89:24:5a:7a:34:90:a5:64:
36+
d1:30:43:f5:89:4c:99:9b:d2:89:f2:ef:74:38:7f:bb:52
137
-----BEGIN CERTIFICATE-----
238
MIIB9DCCAZqgAwIBAgIJAMQooIBlaTnvMAoGCCqBHM9VAYN1ME0xCzAJBgNVBAYT
339
AkNOMRIwEAYDVQQIDAlTaGFuZyBIYWkxFDASBgNVBAoMC2V4YW1wbGUuY29tMRQw

gmtls/gmcredentials/testdata/encrypt.cert

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
1+
Certificate:
2+
Data:
3+
Version: 3 (0x2)
4+
Serial Number: 4096 (0x1000)
5+
Signature Algorithm: SM2-with-SM3
6+
Issuer: C=CN, ST=Shang Hai, O=example.com, CN=example.com
7+
Validity
8+
Not Before: Oct 26 14:27:29 2020 GMT
9+
Not After : Oct 26 14:27:29 2021 GMT
10+
Subject: C=CN, ST=Shang Hai, O=example.com, CN=test.example.com
11+
Subject Public Key Info:
12+
Public Key Algorithm: id-ecPublicKey
13+
Public-Key: (256 bit)
14+
pub:
15+
04:ff:45:3a:51:3f:26:76:02:a6:8d:97:71:0e:f9:
16+
8c:e0:19:fe:75:96:b8:98:aa:1c:29:ec:e7:c3:0f:
17+
e4:85:e6:35:2a:b9:26:a8:0b:62:f9:d7:36:c7:f4:
18+
5b:42:46:41:8c:25:6d:3e:90:17:ab:67:5e:dd:f3:
19+
a8:7b:73:19:4c
20+
ASN1 OID: SM2
21+
X509v3 extensions:
22+
X509v3 Basic Constraints:
23+
CA:FALSE
24+
Netscape Cert Type:
25+
SSL Server
26+
Netscape Comment:
27+
OpenSSL Generated Server Certificate
28+
X509v3 Subject Key Identifier:
29+
09:5B:39:A5:3B:78:8F:81:00:BC:3C:30:AA:81:04:99:4E:06:8E:13
30+
X509v3 Authority Key Identifier:
31+
keyid:78:EF:54:88:B1:EB:19:CB:F0:7D:D9:6E:8D:6D:67:AB:8A:81:1C:AD
32+
DirName:/C=CN/ST=Shang Hai/O=example.com/CN=example.com
33+
serial:C4:28:A0:80:65:69:39:EF
34+
35+
X509v3 Key Usage: critical
36+
Key Encipherment
37+
X509v3 Extended Key Usage:
38+
TLS Web Server Authentication
39+
Signature Algorithm: SM2-with-SM3
40+
30:45:02:20:3e:df:1c:d3:30:5a:b2:2a:b7:4f:70:15:71:38:
41+
f1:dc:fd:d6:f9:b8:01:08:bd:16:54:0d:89:a3:c5:69:db:90:
42+
02:21:00:b3:86:5e:6e:3d:58:8d:97:e0:fa:4e:60:f8:50:1a:
43+
2c:29:2c:a1:be:a5:de:be:ee:2f:76:e6:51:cd:63:90:3d
144
-----BEGIN CERTIFICATE-----
245
MIICqzCCAlGgAwIBAgICEAAwCgYIKoEcz1UBg3UwTTELMAkGA1UEBhMCQ04xEjAQ
346
BgNVBAgMCVNoYW5nIEhhaTEUMBIGA1UECgwLZXhhbXBsZS5jb20xFDASBgNVBAMM

gmtls/gmcredentials/testdata/sign.cert

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
1+
Certificate:
2+
Data:
3+
Version: 3 (0x2)
4+
Serial Number: 4096 (0x1000)
5+
Signature Algorithm: SM2-with-SM3
6+
Issuer: C=CN, ST=Shang Hai, O=example.com, CN=example.com
7+
Validity
8+
Not Before: Oct 26 14:27:29 2020 GMT
9+
Not After : Oct 26 14:27:29 2021 GMT
10+
Subject: C=CN, ST=Shang Hai, O=example.com, CN=test.example.com
11+
Subject Public Key Info:
12+
Public Key Algorithm: id-ecPublicKey
13+
Public-Key: (256 bit)
14+
pub:
15+
04:aa:18:39:0c:f5:4d:ae:c2:f6:91:71:e0:73:a8:
16+
59:ad:41:32:e6:85:06:96:b0:6b:40:e9:00:43:e2:
17+
39:59:d1:5a:20:d7:71:d5:1c:48:53:5d:b9:da:25:
18+
8b:1f:56:3a:31:20:ad:19:19:d2:88:83:32:bb:81:
19+
25:1b:55:e2:e9
20+
ASN1 OID: SM2
21+
X509v3 extensions:
22+
X509v3 Basic Constraints:
23+
CA:FALSE
24+
Netscape Cert Type:
25+
SSL Server
26+
Netscape Comment:
27+
OpenSSL Generated Server Certificate
28+
X509v3 Subject Key Identifier:
29+
59:EC:0B:28:69:97:5B:91:48:34:DA:8A:9E:AF:1B:B2:F3:AC:8E:96
30+
X509v3 Authority Key Identifier:
31+
keyid:78:EF:54:88:B1:EB:19:CB:F0:7D:D9:6E:8D:6D:67:AB:8A:81:1C:AD
32+
DirName:/C=CN/ST=Shang Hai/O=example.com/CN=example.com
33+
serial:C4:28:A0:80:65:69:39:EF
34+
35+
X509v3 Key Usage: critical
36+
Digital Signature
37+
X509v3 Extended Key Usage:
38+
TLS Web Server Authentication
39+
Signature Algorithm: SM2-with-SM3
40+
30:44:02:20:67:c3:a0:4c:c4:21:88:bc:51:6e:2f:78:be:89:
41+
86:cd:65:b0:21:3e:24:db:d6:40:78:64:b2:77:3b:72:6e:98:
42+
02:20:5c:0d:91:bb:1d:1d:5b:7a:f4:15:2f:22:f8:84:b4:08:
43+
60:e0:7d:53:aa:44:25:a5:c5:90:61:30:9b:cf:78:89
144
-----BEGIN CERTIFICATE-----
245
MIICqjCCAlGgAwIBAgICEAAwCgYIKoEcz1UBg3UwTTELMAkGA1UEBhMCQ04xEjAQ
346
BgNVBAgMCVNoYW5nIEhhaTEUMBIGA1UECgwLZXhhbXBsZS5jb20xFDASBgNVBAMM

gmtls/gmcredentials/testdata/user.cert

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,44 @@
1+
Certificate:
2+
Data:
3+
Version: 3 (0x2)
4+
Serial Number: 4096 (0x1000)
5+
Signature Algorithm: SM2-with-SM3
6+
Issuer: C=CN, ST=Shang Hai, O=example.com, CN=example.com
7+
Validity
8+
Not Before: Oct 26 14:27:29 2020 GMT
9+
Not After : Oct 26 14:27:29 2021 GMT
10+
Subject: C=CN, ST=Shang Hai, O=example.com, CN=test.example.com
11+
Subject Public Key Info:
12+
Public Key Algorithm: id-ecPublicKey
13+
Public-Key: (256 bit)
14+
pub:
15+
04:e8:9d:6b:df:37:20:38:2f:8e:1d:84:e9:97:5c:
16+
db:80:4c:69:e5:c3:01:5b:b7:1a:0d:56:6b:3e:16:
17+
22:30:ef:23:f9:34:49:07:99:b8:4c:02:38:80:36:
18+
fa:f1:dd:6d:c1:85:3b:57:99:d6:16:72:53:0a:ce:
19+
be:b1:c1:de:78
20+
ASN1 OID: SM2
21+
X509v3 extensions:
22+
X509v3 Basic Constraints:
23+
CA:FALSE
24+
Netscape Cert Type:
25+
SSL Client, S/MIME
26+
Netscape Comment:
27+
OpenSSL Generated Client Certificate
28+
X509v3 Subject Key Identifier:
29+
F8:BE:51:64:3F:31:02:37:47:D0:51:EE:A0:0A:54:C7:2E:FD:6F:A1
30+
X509v3 Authority Key Identifier:
31+
keyid:78:EF:54:88:B1:EB:19:CB:F0:7D:D9:6E:8D:6D:67:AB:8A:81:1C:AD
32+
33+
X509v3 Key Usage: critical
34+
Digital Signature, Non Repudiation, Key Encipherment
35+
X509v3 Extended Key Usage:
36+
TLS Web Client Authentication, E-mail Protection
37+
Signature Algorithm: SM2-with-SM3
38+
30:44:02:20:7a:00:43:c3:89:6a:40:82:1c:7d:ed:b4:47:c8:
39+
fe:07:b8:bd:06:d4:31:f6:f4:83:8c:be:3b:9c:d4:40:6e:6a:
40+
02:20:58:a9:3e:09:b4:17:21:ca:5e:1d:85:14:04:00:e1:37:
41+
c3:2b:e8:1e:41:87:54:4c:3b:51:e8:09:c2:0d:94:93
142
-----BEGIN CERTIFICATE-----
243
MIICVDCCAfugAwIBAgICEAAwCgYIKoEcz1UBg3UwTTELMAkGA1UEBhMCQ04xEjAQ
344
BgNVBAgMCVNoYW5nIEhhaTEUMBIGA1UECgwLZXhhbXBsZS5jb20xFDASBgNVBAMM

0 commit comments

Comments
 (0)