gnupg

can't use gpg-agent as an ssh agent

让人想犯罪 __ 提交于 2020-02-20 11:37:07
问题 I've been trying to get gpg-agent to work as an ssh agent, but without any luck. I'm running the KDE version of Linux Mint (Sarah). First, I disabled the built-in ssh agent in /etc/X11/Xsession.options: # $Id: Xsession.options 189 2005-06-11 00:04:27Z branden $ # # configuration options for /etc/X11/Xsession # See Xsession.options(5) for an explanation of the available options. allow-failsafe allow-user-resources allow-user-xsession #use-ssh-agent use-session-dbus Then, I enabled the ssh

Remember GPG password when signing git commits

最后都变了- 提交于 2020-01-31 04:12:56
问题 Would it be possible for the GPG password to be saved, so that I am not prompted for the passphrase everytime I make a git commit? 回答1: You can set a timeout period for gpg-agent in ~/.gnupg/gpg-agent.conf with this line: default-cache-ttl 3600 That would tell gpg-agent to store the passphrase for one hour. You wouldn't want it to be indefinite, but not constantly typing it is of benefit too. 来源: https://stackoverflow.com/questions/36847431/remember-gpg-password-when-signing-git-commits

Can't check signature: public key not found

孤街醉人 提交于 2020-01-30 14:27:09
问题 I try to decrypt file using following command: gpg --output file.txt --decrypt file.pgp File is decrypted successfully but i get an error: "gpg: Can't check signature: public key not found" Any idea, why I get this error? 回答1: You get that error because you don't have the public key of the person who signed the message. gpg should have given you a message containing the ID of the key that was used to sign it. Obtain the public key from the person who encrypted the file and import it into your

PHP Gnupg is not showing up as an extension in phpinfo() and I can't use it in php

别等时光非礼了梦想. 提交于 2020-01-24 00:45:09
问题 I have gnupg and gpgme installed using homebrew. I also linked both and made sure they are installed and linked by running brew gnupg install and brew gpgme install and got the message confirming the installation and the version. I have placed the gnupg.so file in the extension path and also added extension=gnupg.so into the php.ini file. I got the extension path and the specific php.ini's path from the infophp page. After restarting mamp, I still don't see gnupg or gpgme as extensions on

Change the binary that Git uses to invoke GnuPG for signing commits?

梦想与她 提交于 2020-01-22 14:38:10
问题 I'm signing my commits in Git using GnuPG. I'd prefer it greatly if Git would use /usr/bin/gpg2 rather than /usr/bin/gpg for signing commits for some compatibility reasons. Is there a Git configuration setting which will allow me to set which GnuPG binary to use during signing? I haven't been able to find one. 回答1: You could try and set the right config: git config gpg.program gpg2 From git config man page: Use this custom program instead of " gpg " found on $PATH when making or verifying a

Enigmail Error - “no matching secret key found to decrypt message”

我的梦境 提交于 2020-01-16 18:33:07
问题 After switching the Linux Distributions, gpg changed and I could not encrypt any emails. Even my own. Enigmail gave me "No matching secret key found to decrypt message" error message. Before: $gpg --version gpg (GnuPG) 2.1.18 libgcrypt 1.7.6-beta Now: $gpg2 --version gpg (GnuPG) 2.2.13 libgcrypt 1.8.4 Both have Enigmail 2.0.9. 回答1: In the end, this helped: https://sourceforge.net/p/enigmail/forum/support/thread/03ebee57/ gpg2 --edit-key 0xYourKeyId setpref save ( 0xYourKeyId taken from gpg2 -

download a pgp key automaticly

本秂侑毒 提交于 2020-01-15 12:14:17
问题 I want to download a pgp key from a keyserver automaticly using gpg like this: gpg --searchkey carol@example.com gpg is giving me this result. gpg: searching for "carol@example.com" from hkp server pool.sks-keyservers.net (1) <carol@example.com> 2048 bit RSA key 2F5E71CD, created: 2015-02-17 Keys 1-1 of 1 for "carol@example.com". Enter number(s), N)ext, or Q)uit > If I want to add this key to my keyring I need to press "1" and ENTER. My Question is: Is there a way to insert automatically

Verification of PGP signature using BouncyCastle

家住魔仙堡 提交于 2020-01-06 18:40:34
问题 I've generated a PGP Signature: -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBBABCAAGBQJYnkPxAAoJEBFjzYGyXBOsXRoH/3O4bwKK45aUN+m0N4jsZ+n5 W8R/aGti/llvJ62tHBCO5BIp/pp+b1Gdv99xtnJXHu/f0TqPYj+fwq4vfaorNTtA Vtq8MaMesw1OWZEfu/lyjNOwdg81FUlYkw0Bjo3H/MxWjWYUiHmJo+OGriyf5dv/ 433ZqitZMxLHCfZsuoU5teZ0BPUSoNjF6hOFK3ZI7QXsgYUyohzW2goy9bDVCKRq e73CHpnMKCrnDc+/4+sK349bD/cZp6/c0T8b7cBCeBGGilPD6ovJUQE5vhGTKnJM lgyxhA87tw9wqFwpZXDr0nzOP+MFfE9WRGecVYZ9G+LP/biefSe5iWRaPIcZIi0= =qUHb -----END PGP

Verification of PGP signature using BouncyCastle

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-06 18:40:29
问题 I've generated a PGP Signature: -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBBABCAAGBQJYnkPxAAoJEBFjzYGyXBOsXRoH/3O4bwKK45aUN+m0N4jsZ+n5 W8R/aGti/llvJ62tHBCO5BIp/pp+b1Gdv99xtnJXHu/f0TqPYj+fwq4vfaorNTtA Vtq8MaMesw1OWZEfu/lyjNOwdg81FUlYkw0Bjo3H/MxWjWYUiHmJo+OGriyf5dv/ 433ZqitZMxLHCfZsuoU5teZ0BPUSoNjF6hOFK3ZI7QXsgYUyohzW2goy9bDVCKRq e73CHpnMKCrnDc+/4+sK349bD/cZp6/c0T8b7cBCeBGGilPD6ovJUQE5vhGTKnJM lgyxhA87tw9wqFwpZXDr0nzOP+MFfE9WRGecVYZ9G+LP/biefSe5iWRaPIcZIi0= =qUHb -----END PGP

Decrypt gpg in Java without using Java.Runtime

不羁岁月 提交于 2020-01-04 15:29:11
问题 I have a .gpg file and a RSA private key. How can I programatically decrypt it without using operating system? e.g. without using something like Runtime.getRuntime().exec("gpg -decrypt....."); Libraries I've found all run operating system. Like GnuPG or gnugpg-for-java. 回答1: The Bouncy Castle library provides (among other features) an OpenPGP implementation. The package org.bouncycastle.openpgp.examples contains several usage examples, one of them showing how to encrypt/decrypt a file using a