openssl 查看和指定rsa密钥E值

查看:

#模数和公共指数位于最后一个BIT STRING中,偏移量为19,因此请使用-strparse
xiaojun.zhang@102-ADP:~/tmp$ openssl asn1parse -inform PEM -in ./old_pub.pem -i
    0:d=0  hl=4 l= 290 cons: SEQUENCE
    4:d=1  hl=2 l=  13 cons:  SEQUENCE
    6:d=2  hl=2 l=   9 prim:   OBJECT            :rsaEncryption
   17:d=2  hl=2 l=   0 prim:   NULL
   19:d=1  hl=4 l= 271 prim:  BIT STRING
xiaojun.zhang@102-ADP:~/tmp$ openssl asn1parse -inform PEM -in ./old_pub.pem -i -strparse 19
    0:d

你可能感兴趣的:(sh,安全,openssl,RSA)