您好,我有一个具有 X509 结构的编码公钥,我想从中提取模数和公共指数我正在使用以下 ASN.1 解码器http://lapo.it/asn1js/来读取密钥,但我可以在我得到的结果中看不到模数或公共指数。
这是我要阅读的关键。
30819e300d06092a864886f70d010101050003818c00308188028180599a96c54ef07f5288a061a56386376fd9e2e0a253cb035f2b0c65c85c99153a848a8247d9e28d8be1dbad5e754e8393e591cc53e5abec2f0a44b4844646cc283123fdd799c50dd5acd1277fd9afeb9c5a12a53b9edfff0ac53d6e94e5f1678c3bd0ccd8d08b18d4a42f845b79b8b19203e24e189801ca396f5732bfe628edeb0203010001
这是我从解码器得到的结果。
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
提前致谢。
//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)