RSA鍵の生成方法

Rivest Shamir Adelman

公開鍵暗号方式

開発者3名(R.L.Rivest、A.Shamir、L.Adleman)の頭文字から。

% ~/.ssh
% ssh-keygen -t rsa
Generating public/private rsa key pair. //ペアキーの生成
Enter file in which to save the key (/Users/test/.ssh/id_rsa): //保存場所の確認
Enter passphrase (empty for no passphrase): //パスワード入力
Enter same passphrase again: //パスワード入力確認
Your identification has been saved in /Users/test/.ssh/id_rsa.
Your public key has been saved in /Users/test/.ssh/id_rsa.pub.
The key fingerprint is:
89:31:8r:30:w6:f7:db:1f:e8:93:62:63:38:70:d6:43 test@omac.local
The key's randomart image is:
+--[ RSA 2048]----+
|  +   .          |
| o o +           |
|  . o o          |
|   . .Eo .       |
|     oo S        |
|  . o oo .       |
|   + ...o..      |
|    o =.o. .     |
|     + o...      |
+-----------------+

公開鍵で暗号化・復号化、秘密鍵で復号化・暗号化が可能。

PKIの基盤。