Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.
Both sides previous revision Попередня ревізія Наступна ревізія | Попередня ревізія | ||
gpg [2015/01/18 22:15] wombat |
gpg [2015/02/07 23:39] wombat [Экспорт открытого ключа] |
||
---|---|---|---|
Рядок 4: | Рядок 4: | ||
<code> | <code> | ||
- | gpg (GnuPG) 0.9.4; Copyright (C) 1999 Free Software Foundation, Inc. | + | gpg (GnuPG) 2.0.26; Copyright (C) 2013 Free Software Foundation, Inc. |
- | This program comes with ABSOLUTELY NO WARRANTY. | + | This is free software: you are free to change and redistribute it. |
- | This is free software, and you are welcome to redistribute it | + | There is NO WARRANTY, to the extent permitted by law. |
- | under certain conditions. See the file COPYING for details. | + | |
- | + | ||
Please select what kind of key you want: | Please select what kind of key you want: | ||
- | (1) DSA and ElGamal (default) | + | (1) RSA and RSA (default) |
- | (2) DSA (sign only) | + | (2) DSA and Elgamal |
- | (4) ElGamal (sign and encrypt) | + | (3) DSA (sign only) |
+ | (4) RSA (sign only) | ||
Your selection? | Your selection? | ||
</code> | </code> | ||
Рядок 66: | Рядок 66: | ||
To send your public key to a correspondent you must first export it. The command-line option --export is used to do this. It takes an additional argument identifying the public key to export. As with the --gen-revoke option, either the key ID or any part of the user ID may be used to identify the key to export. | To send your public key to a correspondent you must first export it. The command-line option --export is used to do this. It takes an additional argument identifying the public key to export. As with the --gen-revoke option, either the key ID or any part of the user ID may be used to identify the key to export. | ||
- | alice% gpg --output alice.gpg --export alice@cyb.org | + | $ gpg --output alice.gpg --export alice@cyb.org |
The key is exported in a binary format, but this can be inconvenient when the key is to be sent though email or published on a web page. GnuPG therefore supports a command-line option --armor[2] that causes output to be generated in an ASCII-armored format similar to uuencoded documents. In general, any output from GnuPG, e.g., keys, encrypted documents, and signatures, can be ASCII-armored by adding the --armor option. | The key is exported in a binary format, but this can be inconvenient when the key is to be sent though email or published on a web page. GnuPG therefore supports a command-line option --armor[2] that causes output to be generated in an ASCII-armored format similar to uuencoded documents. In general, any output from GnuPG, e.g., keys, encrypted documents, and signatures, can be ASCII-armored by adding the --armor option. | ||
- | alice% gpg --armor --export alice@cyb.org | + | $ gpg --armor --export alice@cyb.org |
-----BEGIN PGP PUBLIC KEY BLOCK----- | -----BEGIN PGP PUBLIC KEY BLOCK----- | ||
Version: GnuPG v0.9.7 (GNU/Linux) | Version: GnuPG v0.9.7 (GNU/Linux) |