Guest User

Untitled

a guest
May 26th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. asn1=SEQUENCE:rsa_key
  2.  
  3. [rsa_key]
  4. version=INTEGER:0
  5. modulus=INTEGER:187
  6. pubExp=INTEGER:7
  7. privExp=INTEGER:23
  8. p=INTEGER:17
  9. q=INTEGER:11
  10. e1=INTEGER:7
  11. e2=INTEGER:3
  12. coeff=INTEGER:14
  13.  
  14. $openssl asn1parse -genconf asn_format_mykey.txt -out pkey.der
  15.  
  16. $openssl rsa -inform der -in newkey.der -outform pem -pubout>pkey.pem
  17.  
  18. $openssl rsa -in newkey.der -inform der -text -check
  19.  
  20. $ echo 'aaaa'| openssl rsautl -encrypt -pubin -inkey pkey.pem -raw -out message.encrypted
Add Comment
Please, Sign In to add comment