我使用 openssl 生成一对密钥:
shell> ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/mike/.ssh/id_rsa): /path/to/test_rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /path/to/test_rsa.
Your public key has been saved in /path/to/test_rsa.pub.
然后,我从私钥生成模数:
shell> openssl rsa -in /path/to/test_rsa -noout -modulus > /path/to/modulus.txt
现在,有没有办法仅从模数中获取 test_rsa.pub(public key) ?