Your browser does not support HTML5 local storage or you have disabled it. Some functionality on this site, including saving your privacy settings and offering you special discounts, uses local storage and may not work with local storage disabled. We recommend allowing the use of local storage in your browser. In some browsers, it is the same setting used for disabling cookies.

PreviousNextUp[Front page] [Index]

Example

Using a certificate generated earlier, when the following command is given:

ssh-berdump initial-0.crt

The following output is produced:

SSH BER/DER Dumper
Copyright (c) 1998-2000 SSH Communications Security, Ltd.
Options:
file   = initial-0.crt
ber    = true
base64 = false
hexl = false
offset = 0
0000 : SEQUENCE
0004 :   SEQUENCE
0008 :     CONTEXT 0
0010 :       INTEGER   2 (2 bits)
0013 :     INTEGER   87332 (17 bits)
0018 :     SEQUENCE
0020 :       OBJECT IDENTIFIER  sha1WithRSAEncryption
(1.2.840.113549.1.1.5)
0031 :       NULL
0033 :     SEQUENCE
0035 :       SET
0037 :         SEQUENCE
0039 :           OBJECT IDENTIFIER  CN (2.5.4.3)
0044 :           UTF8 STRING  (19 bytes)
00000000: 5465 7374 20c3 a4c3 a46b 6bc3 b66e 656e  Test ....kk..nen
00000010: 2043 41                                   CA
0065 :     SEQUENCE
0067 :       UNIVERSAL TIME  2004 May 19th, 08:42:14 GMT
0082 :       UNIVERSAL TIME  2005 May 12th, 10:16:14 GMT
0097 :     SEQUENCE
0099 :       SET
0101 :         SEQUENCE
0103 :           OBJECT IDENTIFIER  C (2.5.4.6)
0108 :           PRINTABLE STRING  (2 bytes)
00000000: 4649                                     FI
0112 :       SET
0114 :         SEQUENCE
0116 :           OBJECT IDENTIFIER  O (2.5.4.10)
0121 :           PRINTABLE STRING  (3 bytes)
00000000: 5353 48                                  SSH
0126 :       SET
0128 :         SEQUENCE
0130 :           OBJECT IDENTIFIER  CN (2.5.4.3)
0135 :           PRINTABLE STRING  (15 bytes)
00000000: 4578 616d 706c 652f 696e 6974 6961 6c    Example/initial
0152 :     SEQUENCE
0155 :       SEQUENCE
0157 :         OBJECT IDENTIFIER  rsaEncryption (1.2.840.113549.1.1.1)
0168 :         NULL
0170 :       BIT STRING  (141 bytes)
00000000: 0030 8189 0281 8100 c4cf 6a2a 8a8d 6380  .0........j*..c.
00000010: 2018 0b75 8c64 b852 907a f3be 5c85 ba12   ..u.d.R.z..\...
00000020: a92f 8b11 3231 4715 a3dc 29f1 12f0 879e  ./..21G...).....
00000030: 2224 0ae3 9601 5ff2 5b7c 5b6f a1a0 bd76  "$$...._.[|[o...v
00000040: 817b ce00 9704 7645 8139 5786 d55b ccb1  .{....vE.9W..[..
00000050: 309d b455 4b16 8493 2d06 f4fe edfd 0078  0..UK...-......x
00000060: 3ee2 1d5a 5812 5ed9 7ab4 d61b 0d7b 66f8  >..ZX.^.z....{f.
00000070: 11c4 2f53 7ac1 539f f516 dc2d 4cdc 340b  ../Sz.S....-L.4.
00000080: d72e 3f7a 3bb1 a559 0203 0100 01         ..?z;..Y.....
0314 :     CONTEXT 3
0316 :       SEQUENCE
0318 :         SEQUENCE
0320 :           OBJECT IDENTIFIER  authorityKeyIdentifier (2.5.29.35)
0325 :           OCTET STRING  (24 bytes)
00000000: 3016 8014 8585 b404 241c 2018 f2ab 111a  0.......$$. .....
00000010: 6e69 3c90 4f8b fdf2                      ni<.O...
0351 :         SEQUENCE
0353 :           OBJECT IDENTIFIER  subjectKeyIdentifier (2.5.29.14)
0358 :           OCTET STRING  (22 bytes)
00000000: 0414 92f1 a3a8 ec52 4d4b 930f 36e8 ab62  .......RMK..6..b
00000010: bec9 b479 f52f                           ...y./
0382 :         SEQUENCE
0384 :           OBJECT IDENTIFIER  keyUsage (2.5.29.15)
0389 :           OCTET STRING  (4 bytes)
00000000: 0302 0780                                ....
0395 :         SEQUENCE
0397 :           OBJECT IDENTIFIER  subjectAlternativeName (2.5.29.17)
0402 :           OCTET STRING  (8 bytes)
00000000: 3006 8704 0102 0304                      0.......
0412 :   SEQUENCE
0414 :     OBJECT IDENTIFIER  sha1WithRSAEncryption
(1.2.840.113549.1.1.5)
0425 :     NULL
0427 :   BIT STRING  (129 bytes)
00000000: 0059 40b1 41bf 574c 5bce bab0 b6b4 064c  .Y@.A.WL[......L
00000010: b942 40fa e4f4 4284 c85c 5897 1110 89ed  .B@...B..\X.....
00000020: 84f6 6b3b aca0 7810 933e 8ffd eb52 8686  ..k;..x..>...R..
00000030: 28e9 b1c3 92f0 835e c198 f6d4 b9d2 7249  (......^......rI
00000040: c8fb 08e2 318c 0408 09f0 c3a4 7b36 06a2  ....1.......{6..
00000050: 8022 eb30 7271 6453 1320 fcde 63c7 4f97  .".0rqdS. ..c.O.
00000060: c01e 6499 ecc3 47ae fbdb 3490 196c 06a3  ..d...G...4..l..
00000070: 96ac da4a a167 cc64 4974 487c 7c1a ddc1  ...J.g.dItH||...
00000080: 98                                       .

The program tries to expand as many fields as it can, even if the field at the first glance seems non-ASN.1.


PreviousNextUp[Front page] [Index]

===AUTO_SCHEMA_MARKUP===