mirror of
https://github.com/fruworg/fruworg.github.io.git
synced 2025-01-18 11:50:52 +03:00
Create pgp-commands.md
This commit is contained in:
parent
52a2785251
commit
976135d17e
28
content/posts/pgp-commands.md
Normal file
28
content/posts/pgp-commands.md
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
---
|
||||||
|
title: Памятка по PGP/GPG
|
||||||
|
description: gnupg - export, import and renew
|
||||||
|
date: 2025-01-12T22:00:00+01:00
|
||||||
|
tags: [linux, pgp]
|
||||||
|
---
|
||||||
|
## Экспорт
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gpg -a --export-secret-keys > private.asc
|
||||||
|
gpg --export-ownertrust > trust.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
## Импорт
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gpg --import private.asc
|
||||||
|
gpg --import public.asc
|
||||||
|
gpg --import-ownertrust trust.txt
|
||||||
|
```
|
||||||
|
|
||||||
|
## Продление
|
||||||
|
|
||||||
|
```bash
|
||||||
|
gpg --list-keys
|
||||||
|
gpg --quick-set-expire <fingerprint> 1y
|
||||||
|
gpg --export <your-email> | curl -T - https://keys.openpgp.org
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user