summaryrefslogtreecommitdiffstats
path: root/net/data/parse_certificate_unittest/tbs_v2_no_optionals.pem
blob: cdfe301de8366d6663190ab146d19b4c99a9677e (plain)
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
This is a version 2 certificate with none of the optional fields.



-----BEGIN TBS CERTIFICATE-----
MDygAwIBAQIBATADBAEBMAMEAQUwHhcNMTIxMDE4MDMxMjAwWhcNMTMxMDE4MTQ1OTU5WjADBAG
DMAMEAfM=
-----END TBS CERTIFICATE-----

$ openssl asn1parse -i < [TBS CERTIFICATE]
    0:d=0  hl=2 l=  60 cons: SEQUENCE          
    2:d=1  hl=2 l=   3 cons:  cont [ 0 ]        
    4:d=2  hl=2 l=   1 prim:   INTEGER           :01
    7:d=1  hl=2 l=   1 prim:  INTEGER           :01
   10:d=1  hl=2 l=   3 cons:  SEQUENCE          
   12:d=2  hl=2 l=   1 prim:   OCTET STRING      [HEX DUMP]:01
   15:d=1  hl=2 l=   3 cons:  SEQUENCE          
   17:d=2  hl=2 l=   1 prim:   OCTET STRING      [HEX DUMP]:05
   20:d=1  hl=2 l=  30 cons:  SEQUENCE          
   22:d=2  hl=2 l=  13 prim:   UTCTIME           :121018031200Z
   37:d=2  hl=2 l=  13 prim:   UTCTIME           :131018145959Z
   52:d=1  hl=2 l=   3 cons:  SEQUENCE          
   54:d=2  hl=2 l=   1 prim:   OCTET STRING      [HEX DUMP]:83
   57:d=1  hl=2 l=   3 cons:  SEQUENCE          
   59:d=2  hl=2 l=   1 prim:   OCTET STRING      [HEX DUMP]:F3



-----BEGIN SERIAL NUMBER-----
AQ==
-----END SERIAL NUMBER-----



-----BEGIN SIGNATURE ALGORITHM-----
MAMEAQE=
-----END SIGNATURE ALGORITHM-----

$ openssl asn1parse -i < [SIGNATURE ALGORITHM]
    0:d=0  hl=2 l=   3 cons: SEQUENCE          
    2:d=1  hl=2 l=   1 prim:  OCTET STRING      [HEX DUMP]:01



-----BEGIN ISSUER-----
MAMEAQU=
-----END ISSUER-----

$ openssl asn1parse -i < [ISSUER]
    0:d=0  hl=2 l=   3 cons: SEQUENCE          
    2:d=1  hl=2 l=   1 prim:  OCTET STRING      [HEX DUMP]:05



-----BEGIN VALIDITY NOTBEFORE-----
eWVhcj0yMDEyLCBtb250aD0xMCwgZGF5PTE4LCBob3Vycz0zLCBtaW51dGVzPTEyLCBzZWNvbmR
zPTA=
-----END VALIDITY NOTBEFORE-----

VALIDITY NOTBEFORE: year=2012, month=10, day=18, hours=3, minutes=12, seconds=0



-----BEGIN VALIDITY NOTAFTER-----
eWVhcj0yMDEzLCBtb250aD0xMCwgZGF5PTE4LCBob3Vycz0xNCwgbWludXRlcz01OSwgc2Vjb25
kcz01OQ==
-----END VALIDITY NOTAFTER-----

VALIDITY NOTAFTER: year=2013, month=10, day=18, hours=14, minutes=59, seconds=59



-----BEGIN SUBJECT-----
MAMEAYM=
-----END SUBJECT-----

$ openssl asn1parse -i < [SUBJECT]
    0:d=0  hl=2 l=   3 cons: SEQUENCE          
    2:d=1  hl=2 l=   1 prim:  OCTET STRING      [HEX DUMP]:83



-----BEGIN SPKI-----
MAMEAfM=
-----END SPKI-----

$ openssl asn1parse -i < [SPKI]
    0:d=0  hl=2 l=   3 cons: SEQUENCE          
    2:d=1  hl=2 l=   1 prim:  OCTET STRING      [HEX DUMP]:F3