简体   繁体   中英

ASN.1 to DER encoding

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM