gnupg
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| gnupg [2022/07/19 20:52] – created 85.134.209.200 | gnupg [2022/10/21 23:47] (current) – admin | ||
|---|---|---|---|
| Line 3: | Line 3: | ||
| =====GNUPG HOW-TO===== | =====GNUPG HOW-TO===== | ||
| Run the following from a linux based operating system (e.g. debian) and accept the defaults. | Run the following from a linux based operating system (e.g. debian) and accept the defaults. | ||
| - | <br>Note, it may take some time to generate the random information. | + | |
| + | Note, it may take some time to generate the random information. | ||
| + | < | ||
| gpg --gen-key | gpg --gen-key | ||
| + | </ | ||
| To see all the keys - yours and your friends etc.: | To see all the keys - yours and your friends etc.: | ||
| + | < | ||
| gpg --list-keys | gpg --list-keys | ||
| + | </ | ||
| Example of above: | Example of above: | ||
| + | < | ||
| / | / | ||
| | | ||
| Line 19: | Line 25: | ||
| pub = Public Key | pub = Public Key | ||
| | | ||
| + | </ | ||
| To send your key (public) to a person: | To send your key (public) to a person: | ||
| + | < | ||
| -o is for a file name (steve) | -o is for a file name (steve) | ||
| -a is for an ascii file | -a is for an ascii file | ||
| gpg --export -o steve -a UID | gpg --export -o steve -a UID | ||
| + | </ | ||
| To import a key manually from someone: | To import a key manually from someone: | ||
| + | < | ||
| gpg --import filename | gpg --import filename | ||
| + | </ | ||
| Upload Public Key to key server: | Upload Public Key to key server: | ||
| + | < | ||
| gpg --send-keys --keyserver wwwkeys.pgp.net UID | gpg --send-keys --keyserver wwwkeys.pgp.net UID | ||
| + | </ | ||
| To edit keys - Typically used for signing keys | To edit keys - Typically used for signing keys | ||
| - | <br>(cant change name or comment, only password and expiry) | + | <code> |
| - | <br>UID = See example above | + | (cant change name or comment, only password and expiry) |
| + | #UID = See example above | ||
| gpg --edit-key UID | gpg --edit-key UID | ||
| + | </ | ||
| To Search for Keys: | To Search for Keys: | ||
| - | <br>(This Will also allow you to download and include the person) | + | |
| + | (This Will also allow you to download and include the person) | ||
| + | < | ||
| gpg --search-key --keyserver wwwkeys.pgp.net stephen burke | gpg --search-key --keyserver wwwkeys.pgp.net stephen burke | ||
| + | </ | ||
| To Create a gpg fingerprint so you can PRINT out your Key fingerprint: | To Create a gpg fingerprint so you can PRINT out your Key fingerprint: | ||
| - | <br>This allows you to take away to a "Key Signing Party" and sign other keys verifying the person' | + | This allows you to take away to a "Key Signing Party" and sign other keys verifying the person' |
| + | < | ||
| gpg --fingerprint | gpg --fingerprint | ||
| + | </ | ||
| ==== Add User ID ==== | ==== Add User ID ==== | ||
| Adding in a User ID: | Adding in a User ID: | ||
| + | < | ||
| gpg --edit-key UID | gpg --edit-key UID | ||
| - | uid n < | + | uid n #Toggles selection of user id with index n. Use 0 to deselect all. |
| list | list | ||
| See the * beside the Current User id. After current ID is selected type: | See the * beside the Current User id. After current ID is selected type: | ||
| | | ||
| + | </ | ||
| That should be it. Upload keys with command above. | That should be it. Upload keys with command above. | ||
| ==== KeySigning Procedure ==== | ==== KeySigning Procedure ==== | ||
| See original: http:// | See original: http:// | ||
| + | < | ||
| gpg --search-key --keyserver wwwkeys.eu.pgp.net firstname lastname | gpg --search-key --keyserver wwwkeys.eu.pgp.net firstname lastname | ||
| #Send a signed and encrypted email, asking for a signed reply. When a signed reply is obtained, then: | #Send a signed and encrypted email, asking for a signed reply. When a signed reply is obtained, then: | ||
| gpg --ask-cert-level --sign-key UID | gpg --ask-cert-level --sign-key UID | ||
| gpg --send-key UID | gpg --send-key UID | ||
| + | </ | ||
| ---- | ---- | ||
| - | URL's:<br> | + | URL' |
| - | http:// | + | |
| - | http:// | + | |
| - | http:// | + | |
| ===== Extend GPG Expiry ===== | ===== Extend GPG Expiry ===== | ||
| Line 70: | Line 94: | ||
| There is a great guide at: http:// | There is a great guide at: http:// | ||
| + | < | ||
| Some of the main points: | Some of the main points: | ||
| gpg --list-keys | gpg --list-keys | ||
| Line 76: | Line 100: | ||
| | | ||
| | | ||
| - | < | + | #enter new expiry date |
| | | ||
| - | < | + | #enter new expiry date |
| save | save | ||
| gpg --keyserver pgp.mit.edu --send-keys UID | gpg --keyserver pgp.mit.edu --send-keys UID | ||
| + | </ | ||
| ===== Fixes ===== | ===== Fixes ===== | ||
| ==== public key decryption failed: Inappropriate ioctl for device ==== | ==== public key decryption failed: Inappropriate ioctl for device ==== | ||
| After updates using gpg via pine threw up the error: gpg: public key decryption failed: Inappropriate ioctl for device | After updates using gpg via pine threw up the error: gpg: public key decryption failed: Inappropriate ioctl for device | ||
| - | The solution: | + | The solution |
| + | < | ||
| | | ||
| + | </ | ||
| Kudos to: https:// | Kudos to: https:// | ||
gnupg.1658260370.txt.gz · Last modified: 2022/07/19 21:13 (external edit)