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) を取得する方法はありますか?