• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1This is a very basic TBSCertificate which would be valid except the version
2number is v4 (3).
3
4
5$ openssl asn1parse -i < [TBS CERTIFICATE]
6    0:d=0  hl=2 l=  60 cons: SEQUENCE
7    2:d=1  hl=2 l=   3 cons:  cont [ 0 ]
8    4:d=2  hl=2 l=   1 prim:   INTEGER           :03
9    7:d=1  hl=2 l=   1 prim:  INTEGER           :01
10   10:d=1  hl=2 l=   3 cons:  SEQUENCE
11   12:d=2  hl=2 l=   1 prim:   OCTET STRING      [HEX DUMP]:01
12   15:d=1  hl=2 l=   3 cons:  SEQUENCE
13   17:d=2  hl=2 l=   1 prim:   OCTET STRING      [HEX DUMP]:05
14   20:d=1  hl=2 l=  30 cons:  SEQUENCE
15   22:d=2  hl=2 l=  13 prim:   UTCTIME           :121018031200Z
16   37:d=2  hl=2 l=  13 prim:   UTCTIME           :131018145959Z
17   52:d=1  hl=2 l=   3 cons:  SEQUENCE
18   54:d=2  hl=2 l=   1 prim:   OCTET STRING      [HEX DUMP]:83
19   57:d=1  hl=2 l=   3 cons:  SEQUENCE
20   59:d=2  hl=2 l=   1 prim:   OCTET STRING      [HEX DUMP]:F3
21-----BEGIN TBS CERTIFICATE-----
22MDygAwIBAwIBATADBAEBMAMEAQUwHhcNMTIxMDE4MDMxMjAwWhcNMTMxMDE4MTQ1OTU5WjADBAG
23DMAMEAfM=
24-----END TBS CERTIFICATE-----
25
26ERROR: Failed parsing version
27
28-----BEGIN ERRORS-----
29RVJST1I6IEZhaWxlZCBwYXJzaW5nIHZlcnNpb24K
30-----END ERRORS-----