I'm trying to generate RSA public key I have ASN.1 code I need to encode with DER
RSAPublicKey ::= SEQUENCE {
modulus INTEGER, 7120255303029382831
publicExponent INTEGER 4242026487
}
My DER code 30 10 08 02 62 D0 3A 79 2F 28 5E AF 02 04 FC D8 2F F7
My DER code is wrong please help me how can I write as correctly
You can/should use a tool to do that.
https://asn1.io/asn1playground/
Compile your spec
Encode a value
Read the result
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.