Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gopass setup using age seems to fail on pinentry request #2120

Closed
AnomalRoil opened this issue Jan 18, 2022 · 4 comments
Closed

Gopass setup using age seems to fail on pinentry request #2120

AnomalRoil opened this issue Jan 18, 2022 · 4 comments
Labels
age age-encryption.org backend bug Defects
Milestone

Comments

@AnomalRoil
Copy link
Member

Steps To Reproduce

git clone 
cd gopass
go build
./gopass setup --crypto age

   __     _    _ _      _ _   ___   ___
 /'_ '\ /'_'\ ( '_'\  /'_' )/',__)/',__)
( (_) |( (_) )| (_) )( (_| |\__, \\__, \
'\__  |'\___/'| ,__/''\__,_)(____/(____/
( )_) |       | |
 \___/'       (_)

🌟 Welcome to gopass!
🌟 Initializing a new password store ...
🔐 No useable cryptographic keys. Generating new key pair
🧪 Creating cryptographic key pair (age) ...
⚠ Do you want to enter a passphrase? (otherwise we generate one for you) [y/N/q]: y
Enter passphrase for your new keypair: 
Retype passphrase for your new keypair: 
✅ Key pair generated
⚠ 🔐 We need to unlock your newly created private key now! Please enter the passphrase you just generated.
2022/01/18 11:18:38 failed to create new private key: failed to list private keys: failed to decrypt /Users/anomalroil/.config/gopass/age/identities: pinentry error: pinentry error: pinentry: unexpected response: "S ERROR curses.isatty 83918950 "

Expected behavior

I would have expected it to work out of the box.

Thoughts

Could this be related to #2095 ??

Environment

  • OS: MacOS
  • OS version: Darwin CHB0120196 20.6.0 Darwin Kernel Version 20.6.0 ; x86_64
  • gopass Version: master tip
  • Installation method: from source
@AnomalRoil
Copy link
Member Author

Related debug logs:

2022/01/18 11:22:44.661491 age/identities.go:87	age.(*Age).ListIdentities	checking existing identities
2022/01/18 11:22:44.661498 age/identities.go:194	age.(*Age).getAllIdentities	checking native identities
2022/01/18 11:22:44.661506 age/identities.go:25	age.(*Age).Identities	no password callback found, redirecting to askPass
2022/01/18 11:22:44.661514 age/identities.go:32	age.(*Age).Identities	reading native identities from /Users/anomalroil/.config/gopass/age/identities
2022/01/18 11:22:44.661761 age/decrypt.go:52	age.(*Age).decryptFile	read 256 bytes from /Users/anomalroil/.config/gopass/age/identities
2022/01/18 11:22:44.661782 age/askpass.go:48	age.(*askPass).Passphrase	Value for /Users/anomalroil/.config/gopass/age/identities not found in cache
2022/01/18 11:22:44.679088 age/identities.go:35	age.(*Age).Identities	failed to decrypt existing identities from /Users/anomalroil/.config/gopass/age/identities: pinentry error: pinentry error: pinentry: unexpected response: "S ERROR curses.isatty 83918950 "

@AnomalRoil AnomalRoil added this to the 1.14.0 milestone Jan 18, 2022
@AnomalRoil AnomalRoil added age age-encryption.org backend bug Defects labels Jan 18, 2022
@AnomalRoil
Copy link
Member Author

Actually this seems to be the same issue as here: #1879

@dominikschulz
Copy link
Member

Did you try installing / using pinentry-mac?

@AnomalRoil
Copy link
Member Author

Solved by exporting export GPG_TTY=$(tty) on my side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
age age-encryption.org backend bug Defects
Projects
None yet
Development

No branches or pull requests

2 participants