Exetools  

Go Back   Exetools > General > Source Code

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 03-31-2019, 05:31
debugasm debugasm is offline
Friend
 
Join Date: Oct 2017
Posts: 12
Rept. Given: 0
Rept. Rcvd 1 Time in 1 Post
Thanks Given: 8
Thanks Rcvd at 13 Times in 6 Posts
debugasm Reputation: 1
Lightbulb 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
Reply With Quote
The Following User Says Thank You to debugasm For This Useful Post:
Indigo (07-19-2019)
  #2  
Old 03-31-2019, 09:29
DimitarSerg DimitarSerg is offline
Family
 
Join Date: Mar 2019
Posts: 9
Rept. Given: 1
Rept. Rcvd 2 Times in 2 Posts
Thanks Given: 4
Thanks Rcvd at 32 Times in 9 Posts
DimitarSerg Reputation: 2
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
Reply With Quote
The Following 2 Users Say Thank You to DimitarSerg For This Useful Post:
debugasm (04-07-2019), Indigo (07-19-2019)
  #3  
Old 03-31-2019, 16:59
gigaman gigaman is offline
Friend
 
Join Date: Jun 2002
Posts: 85
Rept. Given: 0
Rept. Rcvd 3 Times in 2 Posts
Thanks Given: 0
Thanks Rcvd at 13 Times in 10 Posts
gigaman Reputation: 4
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.
Reply With Quote
The Following 2 Users Say Thank You to gigaman For This Useful Post:
debugasm (04-07-2019), Indigo (07-19-2019)
  #4  
Old 03-31-2019, 20:01
WhoCares's Avatar
WhoCares WhoCares is offline
who cares
 
Join Date: Jan 2002
Location: Here
Posts: 335
Rept. Given: 7
Rept. Rcvd 11 Times in 9 Posts
Thanks Given: 15
Thanks Rcvd at 56 Times in 26 Posts
WhoCares Reputation: 11
it's BER/DER encodingof ASN.1
__________________
AKA Solomon/blowfish.
Reply With Quote
The Following 3 Users Say Thank You to WhoCares For This Useful Post:
debugasm (04-07-2019), Indigo (07-19-2019), niculaita (04-01-2019)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT +8. The time now is 17:59.


��ICP��05004977��
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX