Exetools

Exetools (https://forum.exetools.com/index.php)
-   Source Code (https://forum.exetools.com/forumdisplay.php?f=46)
-   -   Raw interpretation of x.509 ... (https://forum.exetools.com/showthread.php?t=19189)

debugasm 03-31-2019 05:31

Raw interpretation of x.509 ...
 
Hi,

after some research I managed to interpret a x.509 certificate manually.

30 82 01 0a ; SEQUENCE (0x010A bytes: 266 bytes)
| 02 82 01 01 ; INTEGER (0x0101 bytes: 257 bytes)
| | 00 ; leading zero because high-bit, but number is positive
| | E0 0B CE C1 D1 8E EA 0D B7 EB C8 F3 C4 58 24
| | B6 2E D7 B8 06 6F 74 0D DE 4C 0F 6F E9 A8 7F 9B D4 35 78 BF FB C4 07 C9
| | 79 FD ED 3A 6F 71 0D 7E A6 CD F2 F3 E4 BC 3F A5 63 A0 D7 05 3F EF 7A DC
| | A1 83 32 71 E7 0E E9 B1 35 7D B4 CF C8 51 9C 92 63 B8 C0 F5 78 68 87 74
| | BE 3F C6 5B E4 7A 5C 2C 47 70 89 1C C7 65 CE C1 55 CE C1 B5 CC FB F3 69
| | BA 7F 39 07 2F 76 0E 5E E6 1C BC CA 39 78 83 9C C0 1B C9 F9 D7 DD 3A F7
| | 73 0D DE E3 1A BC CF F3 E2 03 F4 FF 8D 79 DA 86 9E 17 9F F0 BC F8 8C E7
| | C5 CF 3A 13 3F EF 4C 1C DC C6 7D 7F 81 5E 7B B9 4D 39 B8 FB 6D CA C1 79
| | B7 29 07 0F BF 4D 39 B8 F4 36 E5 E0 F2 DB 38 47 7D 48 F7 3B D7 E0 39 AE
| | C1 75 B7 69 1D F1 42 E6 FD E4 67 B5 5F 79 5E BC 00 0D 92 C0 DA F3 E2 B5
| | 9E 17 6F 70 26 DE EE B9 F0 CE DB 38 E6 7C 47 DB C7 39 F8 88 73 F0 69 E7
| | 96
| 02 03 ; INTEGER (3 bytes)
| 01 00 01

giving the public key modulus and exponent:

modulus = 0xE00BCEC1D18EEA0DB7EBC8F3C45824...69E796
exponent = 65537

debugasm

DimitarSerg 03-31-2019 09:29

Hmmm, sorry, but where is the research ? It's default standard for defining data structures.

Code:

https://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One
https://lapo.it/asn1js
https://www.cs.auckland.ac.nz/~pgut001/#standards


gigaman 03-31-2019 16:59

You can use e.g. the ASN.1 Editor to do that for you..
Code:

https://www.sysadmins.lv/projects/asn1editor/default.aspx
Or, if it's a certificate, just rename it to .cer and open it in Windows - it will show you quite a lot of (high-level) info as well.

WhoCares 03-31-2019 20:01

it's BER/DER encodingof ASN.1


All times are GMT +8. The time now is 04:51.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX