fruworg.github.io/content/posts/pgp-commands.md

29 lines
518 B
Markdown
Raw Permalink Normal View History

2025-01-12 22:01:41 +01:00
---
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
2025-01-12 22:11:39 +01:00
gpg --export <your@ema.il> | curl -T - https://keys.openpgp.org
2025-01-12 22:01:41 +01:00
```