split gpg notes
This commit is contained in:
28
data/gpg/gpg_pinentry.md
Normal file
28
data/gpg/gpg_pinentry.md
Normal file
@@ -0,0 +1,28 @@
|
||||
---
|
||||
title: "GPG Password Entry"
|
||||
tags: [ "vim", "secrets", "TUI" ]
|
||||
requires: [ "GPG Basics", "vim basics" ]
|
||||
---
|
||||
|
||||
|
||||
Check your current gpg-agent configuration:
|
||||
|
||||
```sh
|
||||
gpgconf --list-options gpg-agent
|
||||
```
|
||||
|
||||
Create file, if it doesnt exit `~/.gnupg/gpg-agent.conf`:
|
||||
|
||||
```
|
||||
# Force terminal prompts for passwords
|
||||
pinentry-mode loopback
|
||||
|
||||
# Optional: specify which pinentry program to use
|
||||
pinentry-program /usr/bin/pinentry-tty
|
||||
```
|
||||
|
||||
Then restart gpg-agent:
|
||||
```sh
|
||||
gpg-connect-agent reloadagent /bye
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user