- 追加された行はこの色です。
- 削除された行はこの色です。
[[Security]]
///////////////////////////////////////////////////////////////////////////////
* 目次 [#hb56080a]
#contents();
///////////////////////////////////////////////////////////////////////////////
* GnuPG [#v1625344]
- キーの生成
$ gpg --key-gen
ご希望の鍵の種類を選択してください:
(1) DSAとElgamal (既定)
(2) DSA (署名のみ)
(5) RSA (署名のみ)
選択は?
- 公開鍵
//-----------------------------------------------------------------------------
** 秘密鍵 [#v262671d]
- 秘密鍵のexport
$ gpg -o sec.key --export-secret-key user@example.com
- 秘密鍵のimport
$ gpg --import --allow-secret-key-imort sec.key
//-----------------------------------------------------------------------------
** 公開鍵 [#s7011507]
- 公開鍵の export
$ gpg -o pub.key --export user@example.com
- 公開鍵の import
$ gpg --import pub.key