Guest User

Untitled

a guest
Jan 22nd, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. # RSA PubKey Generate???
  2.  
  3. $ openssl genrsa -out private.key
  4. Generating RSA private key, 512 bit long modulus
  5. ......++++++++++++
  6. ...++++++++++++
  7. unable to write 'random state'
  8. e is 65537 (0x10001)
  9.  
  10. $ openssl rsa -in private.key -out public.key -pubout
  11. writing RSA key
  12.  
  13. $ ls
  14. private.key public.key
  15.  
  16. $ openssl rsa -inform PEM -in public.key -pubin -pubout -text
  17. Modulus (512 bit):
  18. 00:d7:3d:45:cb:a0:c0:a8:64:ec:d1:ee:24:ac:6a:
  19. 9a:3d:9d:25:e6:31:fe:45:b2:04:8b:dc:ac:49:44:
  20. fc:68:ee:d7:b3:b0:b2:2e:b0:77:a1:93:d6:47:a0:
  21. c1:64:f4:fb:df:d2:d9:42:11:f4:cd:b3:30:9f:00:
  22. ad:78:21:a4:a9
  23. Exponent: 65537 (0x10001)
  24. writing RSA key
  25. -----BEGIN PUBLIC KEY-----
  26. MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBANc9RcugwKhk7NHuJKxqmj2dJeYx/kWy
  27. BIvcrElE/Gju17Owsi6wd6GT1kegwWT0+9/S2UIR9M2zMJ8ArXghpKkCAwEAAQ==
  28. -----END PUBLIC KEY-----
Add Comment
Please, Sign In to add comment