Gpg: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
Import public keys<ref>https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Step_by_Step_Guide/s1-gnupg-import.html</ref> | {| class="wikitable" | ||
<code>$ gpg --import keys.txt</code> | ! | ||
! | |||
Check the file's signature<ref>https://www.gnupg.org/download/integrity_check.html</ref> | ! | ||
<code>$ gpg --verify foo.sig foo</code> | ! | ||
|- | |||
gpg --card-status | |Import public keys<ref>https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Step_by_Step_Guide/s1-gnupg-import.html</ref> | ||
|<code>$ gpg --import keys.txt</code> | |||
| | |||
| | |||
|- | |||
|Check the file's signature<ref>https://www.gnupg.org/download/integrity_check.html</ref> | |||
|<code>$ gpg --verify foo.sig foo</code> | |||
| | |||
| | |||
|- | |||
| | |||
|gpg --card-status | |||
| | |||
| | |||
|- | |||
|Delete keys | |||
|gpg --delete-keys | |||
| | |||
| | |||
|- | |||
|Delete secret keys | |||
|gpg --delete-secret-keys | |||
| | |||
| | |||
|- | |||
|List key | |||
|gpg --list-keys | |||
| | |||
| | |||
|- | |||
|List secret-keys | |||
|gpg --list-secret-keys | |||
| | |||
| | |||
|- | |||
|Create master key | |||
|gpg2 --full-gen-key | |||
| | |||
| | |||
|- | |||
|Create subkey | |||
|gpg --edit-key <e-mail> | |||
| | |||
| | |||
|} | |||
opensc-tool --list-readers | opensc-tool --list-readers | ||
| Line 13: | Line 57: | ||
ykinfo -a | ykinfo -a | ||
https://wiki.debian.org/Subkeys | https://wiki.debian.org/Subkeys | ||
<nowiki>:</nowiki> | |||
gpg2 --expert --card-edit | gpg2 --expert --card-edit | ||
Revision as of 20:42, 31 May 2017
| Import public keys[1] | $ gpg --import keys.txt
|
||
| Check the file's signature[2] | $ gpg --verify foo.sig foo
|
||
| gpg --card-status | |||
| Delete keys | gpg --delete-keys | ||
| Delete secret keys | gpg --delete-secret-keys | ||
| List key | gpg --list-keys | ||
| List secret-keys | gpg --list-secret-keys | ||
| Create master key | gpg2 --full-gen-key | ||
| Create subkey | gpg --edit-key <e-mail> |
opensc-tool --list-readers
pcsc_scan
ykinfo -a
https://wiki.debian.org/Subkeys
:
gpg2 --expert --card-edit
cryptsetup --verbose --key-file - --cipher aes-xts-plain64 --key-size 512 --hash sha512 luksFormat keys.ext4.luks
sudo cryptsetup --verbose --key-file - --cipher aes-xts-plain64 --key-size 512 --hash sha512 luksOpen keys.ext4.luks gpg_vault
Remove private master key:
gpg2 --with-keygrip --list-key 0x<MASTERKEY>
rm -rf $GNUPGHOME/private-keys-v1.d/<KEYGRIPID>.key
all private keys are in private-keys-v1.d/.