protecting_passwords_with_gpg
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| protecting_passwords_with_gpg [2018/12/08 12:49] – created 0.0.0.0 | protecting_passwords_with_gpg [2019/01/30 11:32] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Protecting_passwords_with_gpg ====== | + | ===== Gnu Privacy Guard ===== |
| - | + | ==== Generate a private/ | |
| - | ======Gnu Privacy Guard====== | + | < |
| - | =====Generate a private/ | + | gpg --gen-key |
| - | < | + | </ |
| - | =====(Optional) Keyserver Registration===== | + | ==== (Optional) Keyserver Registration ==== |
| To enable someone to retrieve your public key without having to contact you directly. | To enable someone to retrieve your public key without having to contact you directly. | ||
| - | ====Find the id/ | + | === Find the id/ |
| - | < | + | < |
| + | gpg --fingerprint <your name used in generation above> | ||
| + | </ | ||
| id is the hex digit string after the / on the line starting with " | id is the hex digit string after the / on the line starting with " | ||
| fingerprint is the 10 groups of 4 hex digits on the " | fingerprint is the 10 groups of 4 hex digits on the " | ||
| - | ====Register with a key server==== | + | === Register with a key server === |
| There are many available. This is just one example. | There are many available. This is just one example. | ||
| - | < | + | < |
| + | gpg --keyserver subkeys.pgp.net --send-keys '< | ||
| + | or | ||
| + | gpg --keyserver subkeys.pgp.net --send-keys '< | ||
| + | </ | ||
| Either method works. | Either method works. | ||
| - | ====Decrypt a file using your (stored) private key==== | + | === Decrypt a file using your (stored) private key === |
| - | < | + | < |
| - | ====List the public keys on your keyring==== | + | gpg --decrypt --output / |
| - | < | + | or |
| - | ====List the private key on your keyring==== | + | gpg -d -o / |
| - | < | + | </ |
| - | ====Use the private key on your keyring to display public key==== | + | === List the public keys on your keyring === |
| - | < | + | < |
| - | ====Delete someones public key from your keyring==== | + | gpg --list-keys |
| - | < | + | </ |
| - | < | + | === List the private key on your keyring === |
| - | ====Change information about the key==== | + | < |
| - | < | + | [[oracle@sdtcsynx4adb01 ~]]$ gpg --list-secret-keys --keyid-format LONG |
| + | / | ||
| + | ------------------------------- | ||
| + | sec | ||
| + | uid xxxxsynxxxxx01 (xxxxxxxx xxxx) <xxxxxx@xxxxsynxxxxx01.local.net> | ||
| + | ssb | ||
| + | </ | ||
| + | === Use the private key on your keyring to display public key === | ||
| + | < | ||
| + | gpg --armor --export xxxx78D9BC15EC4B | ||
| + | -----BEGIN PGP PUBLIC KEY BLOCK----- | ||
| + | Version: GnuPG v2.0.14 (GNU/ | ||
| + | |||
| + | mQGiBFQhW3URBADY5RfOofl4/ | ||
| + | 5qBQPANhFgi9Atw+b/ | ||
| + | n1FPTswudXca6h85QOu1tPj/ | ||
| + | FZEuDM7jFljyJE3lwDlcdo0EAIClPqBLCXXE3ZyJjNrcMyaqm8bNWyifjq5ZhXBU | ||
| + | ... | ||
| + | lFx+IJyA791gruhSecKmcQHcruOrinrvXiS4OULNSbOlmuB+KsaVLAA3clpNI30Y | ||
| + | ph1CEgBka0N1nLl/ | ||
| + | EQIACQUCVCFbdQIbDAAKCRCZMXjZvBXsS9TqAKDCqDwvFE+gKtHv5Wc3DTSPjIUf | ||
| + | vACcCZB+Z0p4SV/ | ||
| + | ====== QKiI | ||
| + | -----END PGP PUBLIC KEY BLOCK----- | ||
| + | </ | ||
| + | === Delete someones public key from your keyring === | ||
| + | < | ||
| + | gpg --list-secret-keys | ||
| + | </ | ||
| + | < | ||
| + | gpg --armor --output pubic_gpg_key.txt --export '< | ||
| + | </ | ||
| + | === Change information about the key === | ||
| + | < | ||
| + | gpg --refresh-keys | ||
| + | </ | ||
protecting_passwords_with_gpg.1544273361.txt.gz · Last modified: 2018/12/08 12:49 by 0.0.0.0
