This commit is contained in:
parent
a0a7bd6596
commit
daeb5282a6
@ -3,7 +3,7 @@
|
|||||||
### Generate
|
### Generate
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --full-gen-key
|
gpg --full-gen-key
|
||||||
```
|
```
|
||||||
|
|
||||||
### Basic usage
|
### Basic usage
|
||||||
@ -11,31 +11,31 @@ $ gpg --full-gen-key
|
|||||||
Signature sig mode:
|
Signature sig mode:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --detach-sign file.ext
|
gpg --detach-sign file.ext
|
||||||
```
|
```
|
||||||
|
|
||||||
Signature asc mode:
|
Signature asc mode:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --armor --sign file.ext
|
gpg --armor --sign file.ext
|
||||||
```
|
```
|
||||||
|
|
||||||
Verify:
|
Verify:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --verify file.sig
|
gpg --verify file.sig
|
||||||
```
|
```
|
||||||
|
|
||||||
### My user-id
|
### My user-id
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg -K
|
gpg -K
|
||||||
```
|
```
|
||||||
|
|
||||||
### All users-ids
|
### All users-ids
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg -k
|
gpg -k
|
||||||
```
|
```
|
||||||
|
|
||||||
### Copy Public Key
|
### Copy Public Key
|
||||||
@ -47,50 +47,50 @@ gpg --export --armor $(gpg -K --with-colons | awk -F: '/^sec/ { getline; print $
|
|||||||
### Copy Private key (Caution)
|
### Copy Private key (Caution)
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --export-secret-keys -a <user-id> | xclip -sel clip
|
gpg --export-secret-keys -a <user-id> | xclip -sel clip
|
||||||
```
|
```
|
||||||
|
|
||||||
### Change password gpg
|
### Change password gpg
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --edit-key <user-id>
|
gpg --edit-key <user-id>
|
||||||
passwd
|
passwd
|
||||||
```
|
```
|
||||||
|
|
||||||
### Debug gpg
|
### Debug gpg
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ dirmngr --debug-level guru
|
dirmngr --debug-level guru
|
||||||
```
|
```
|
||||||
|
|
||||||
### Import key:
|
### Import key:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --recv-keys $esefingerprint
|
gpg --recv-keys $esefingerprint
|
||||||
```
|
```
|
||||||
|
|
||||||
### Import key from server:
|
### Import key from server:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --recv-keys <user-id> --keyserver pgp.mit.edu
|
gpg --recv-keys <user-id> --keyserver pgp.mit.edu
|
||||||
```
|
```
|
||||||
|
|
||||||
### Export key 0:
|
### Export key 0:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --export --armor <user-id> > public.key
|
gpg --export --armor <user-id> > public.key
|
||||||
```
|
```
|
||||||
|
|
||||||
### Export key 1:
|
### Export key 1:
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --armor --output public.key --export <user-id>
|
gpg --armor --output public.key --export <user-id>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Export key to server
|
### Export key to server
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --keyserver pgp.mit.edu --send-keys <user-id>
|
gpg --keyserver pgp.mit.edu --send-keys <user-id>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Cifrado
|
## Cifrado
|
||||||
@ -98,32 +98,32 @@ $ gpg --keyserver pgp.mit.edu --send-keys <user-id>
|
|||||||
#### Cifrar
|
#### Cifrar
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --symmetric <miarchivo>
|
gpg --symmetric <miarchivo>
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Descifrado
|
#### Descifrado
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --output <archivo.ext> --decrypt <archivo.gpg>
|
gpg --output <archivo.ext> --decrypt <archivo.gpg>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Cifrado Asimétrico
|
### Cifrado Asimétrico
|
||||||
#### Encryt
|
#### Encryt
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --recipient <user-id> --encrypt archivo.ext
|
gpg --recipient <user-id> --encrypt archivo.ext
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Decrypt
|
#### Decrypt
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --output archivo.ext --decrypt archivo.ext.gpg
|
gpg --output archivo.ext --decrypt archivo.ext.gpg
|
||||||
```
|
```
|
||||||
|
|
||||||
## Refresh keys
|
## Refresh keys
|
||||||
|
|
||||||
```console
|
```console
|
||||||
$ gpg --refresh-keys
|
gpg --refresh-keys
|
||||||
```
|
```
|
||||||
|
|
||||||
### wiki
|
### wiki
|
||||||
|
Loading…
x
Reference in New Issue
Block a user