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