openssl rsa命令用来处理RSA的keys
openssl rsaut
openssl rsa -in key_file 表示读入key_file数据
openssl genrsa -out 1.key 1024
openssl rsa -in 1.key -text -noout // 显示16进制参数信息
openssl rsa -in 1.key -pubout -out 1.pubkey
openssl rsa -in 1.key -modulus // 显示private key中的modulus参数
openssl rsa -pubin -in 1.pubkey -modulus // 显示public key中的modulus参数
luther@gliethttp:~$ openssl genrsa -out 1.key 1024
Generating RSA private key, 1024 bit long modulus
....++++++
..........................................++++++
e is 65537 (0x10001)
luther@gliethttp:~$ openssl rsa -in 1.key -text -noout
Private-Key: (1024 bit)
modulus:
00:c2:e2:a1:c5:21:fa:e1:ff:27:41:18:6c:73:e8:
99:03:fd:b1:f3:71:d1:cf:0c:cc:79:94:88:ca:a5:
52:ed:0b:2e:84:b6:90:f4:9f:ee:30:da:55:bc:ce:
0e:8f:cb:7d:da:9a:e3:34:f9:d2:d0:3f:fa:8c:c5:
98:c4:0c:0e:f9:4c:f9:e0:c5:ea:62:b8:cc:e6:a1:
8f:ba:97:1c:ed:ac:c9:20:d2:97:d1:94:cb:c5:64:
a7:c2:84:02:58:a0:8e:ba:b4:3b:37:7c:45:30:e9:
58:ff:a3:12:75:48:71:bc:6c:03:08:5b:3b:56:91:
c6:2c:17:86:52:b1:1d:48:db
publicExponent: 65537 (0x10001)
privateExponent:
71:8e:32:aa:b6:39:04:74:73:40:07:e6:31:c7:a7:
59:5e:fa:d0:9a:52:a1:6d:98:bb:83:24:0d:c8:35:
40:b0:12:43:fc:49:0c:71:20:0e:51:3a:42:10:63:
05:c0:91:ad:ce:30:73:ce:d9:da:c4:5c:ce:a7:d8:
72:eb:7f:d1:18:0d:36:e0:7c:bf:7b:4a:c6:5e:fe:
49:c6:9b:1b:37:12:83:cb:5d:ce:7c:26:73:2f:fc:
75:86:d4:94:7f:7d:cb:77:ec:5f:09:cb:28:77:1f:
64:b1:63:14:fd:29:30:53:8d:69:2a:9a:dc:ba:3d:
c0:5f:cf:a7:0a:03:59:c1
prime1:
00:f8:bc:73:09:8c:56:35:5e:ce:96:7e:00:36:47:
78:0f:dc:1c:5e:77:89:46:41:19:0e:e5:3c:6e:93:
c4:9b:d6:be:28:48:a4:1c:2f:92:56:a5:64:ba:95:
a6:b5:29:cc:db:b2:8f:d7:a4:0c:86:bf:fa:c2:f4:
a9:49:d4:a0:7b
prime2:
00:c8:93:97:ff:b7:7f:a3:6d:02:99:63:3a:73:09:
1b:6b:0d:0e:55:fc:fe:8e:da:28:93:16:cd:18:7e:
b1:2a:92:c9:7f:ac:83:94:77:8f:9b:b1:40:d7:e7:
59:46:c1:5d:b9:21:10:20:d4:62:cb:01:82:60:4b:
39:b1:54:fb:21
exponent1:
00:ab:c4:2f:48:b3:b1:c0:af:54:c8:56:00:bd:7b:
03:2d:28:9a:2a:9e:2f:9c:e5:4d:71:9c:d9:eb:9e:
7d:92:04:6c:52:93:3f:48:fb:8c:f9:ea:c3:31:9a:
30:82:40:78:68:6a:d9:ac:57:6c:13:0d:b6:14:35:
32:46:7a:df:cb
exponent2:
0b:5e:aa:78:19:6b:c7:d4:cf:17:e8:d3:10:60:4c:
c8:95:b5:e1:53:f5:0e:1d:f9:bc:d4:c7:0d:83:69:
01:93:ce:8e:49:36:30:3d:52:cb:ad:91:92:6b:8f:
d8:fd:ef:15:26:75:a6:96:c3:7e:e4:78:02:83:61:
22:d7:41:61
coefficient:
02:5d:41:b2:8f:75:6b:17:67:e5:af:f0:68:09:5b:
d2:8f:ea:01:60:2e:4e:23:48:24:40:bc:67:91:c6:
b5:2a:ff:8e:38:b8:e1:81:3d:eb:5f:b2:b6:9e:00:
c3:26:d5:71:65:6e:cc:47:38:c8:2b:92:c3:0f:64:
c6:32:8a:2f
阅读(3053) | 评论(0) | 转发(0) |