Note that there are some explanatory texts on larger screens.

plurals
  1. POReading public Key from an X509 structure in Javascript
    text
    copied!<p>Hello I have an encoded public key with a X509 structure and I want to extract modulus and the public exponent from it I'm using the following ASN.1 Decoder <a href="http://lapo.it/asn1js/" rel="nofollow">http://lapo.it/asn1js/</a>to read the key but I can't see the modulus or the public exponent in the result I get.</p> <p>This is the key I want to read.</p> <pre><code>30819e300d06092a864886f70d010101050003818c00308188028180599a96c54ef07f5288a061a56386376fd9e2e0a253cb035f2b0c65c85c99153a848a8247d9e28d8be1dbad5e754e8393e591cc53e5abec2f0a44b4844646cc283123fdd799c50dd5acd1277fd9afeb9c5a12a53b9edfff0ac53d6e94e5f1678c3bd0ccd8d08b18d4a42f845b79b8b19203e24e189801ca396f5732bfe628edeb0203010001 </code></pre> <p>This is the result I get from the decoder.</p> <pre><code>SEQUENCE(2 elem) SEQUENCE(2 elem) OBJECT IDENTIFIER1.2.840.113549.1.1.1 NULL BIT STRING(1 elem) SEQUENCE(2 elem) INTEGER(1023 bit) INTEGER65537 </code></pre> <p>Thanks in advance.</p> <pre><code>//Example of what I am expecting to find. 30 819f // SEQUENCE 30 0d // SEQUENCE 06 09 2a864886f70d010101 // OBJECT IDENTIFIER of RSA 05 00 // NULL (parameter) 03 818d // BIT STRING 00 // using all following bits 30 8189 // SEQUENCE 02 8181 // (signed) INTEGER 00 // padding (signed INTEGER) followed by the modulus 95e15f182ec7b6e84786c0ee54e3bb72af0461e6fd859a3625f38dcd3fdec80d fcc51a44756ec7cd6c14b430d55670460c5143efadd1ade7380e890e9957d6e6 b38f35412862cc955e04d1928f21c0d2f7bc48c3855276f0e7c1b45a558e3a01 3b969cbfaebca42b748e64bff787f86ec5f0adcd94428c4ab8ca6d2b710d785b 02 03 // (signed) INTEGER 010001 // public exponent (4th number of Fermat) </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload