Linux/openssh:修订间差异

来自康健生活
Kangkk​(留言 | 贡献)
无编辑摘要
Kangkk​(留言 | 贡献)
第59行: 第59行:


== 公钥推导私钥 ==
== 公钥推导私钥 ==
=== 推导素数 ===
获得模数 <code>n</code> 和公共 public 指数 <code>e</code>。
{{Shc_out|<syntaxhighlight lang="bash">
openssl rsa -pubin -in public.pem -text -noout</syntaxhighlight>|<syntaxhighlight lang="bash">
Public-Key: (1024 bit)
Modulus:
    00:f8:ed:9d:aa:ee:51:32:5b:c0:94:ce:c7:3e:3e:
    01:c4:f5:bd:45:53:00:7c:ef:25:06:3a:e4:2c:10:
    43:d8:94:11:cd:37:3b:62:8f:0b:da:8c:3c:fe:88:
    1d:0d:fb:4e:a3:ba:d7:cc:80:c9:cf:c3:bc:a0:4d:
    9d:e8:c1:30:1b:fe:68:90:4a:36:2f:a7:29:cd:38:
    ce:cc:7b:ec:a5:61:c2:2d:8d:a9:04:4f:15:8d:41:
    b9:6e:fb:52:15:91:9f:3e:50:d7:f9:6e:5f:23:ff:
    c4:21:fd:92:4e:5f:e1:b5:3b:0d:64:2b:35:b5:38:
    7d:df:5d:48:69:67:be:64:e9
Exponent: 65537 (0x10001)
</syntaxhighlight>|$|/home/kangkk}}


== ERROR ==
== ERROR ==