gnupg

How to use Gnupg's passphrase-fd argument?

流过昼夜 提交于 2019-12-03 03:41:43
问题 I would like to use GnuPG´s decrypt command without any user interation. The script's --passphrase-fd argument seems exactly what I need. But I don't know how it works - haven't found examples. Could anyone give me an example of such a command, on both Windows and UNIX environments? (FYI, I'm using GnuPG 2). Thanks already :) 回答1: In order to use the gpg option --passphrase-fd in GnuPG v2, you must specify the --batch parameter. I will first explain how --passphrase-fd works, and then get to

How to display gpg key details without importing it?

丶灬走出姿态 提交于 2019-12-03 00:34:06
问题 I have a copy of the postgresql apt repository gpg key and would like to view the details of the gpg key as it comes in the file. Is this possible without importing it into a key ring? 回答1: There are several detail levels you can get when looking at OpenPGP key data: a basic summary, a machine-readable output of this summary or a detailed (and very technical) list of the individual OpenPGP packets. Basic Key Information For a brief peak at an OpenPGP key file, you can simply pass the filename

How to trust a apt repository : Debian apt-get update error public key is not available: NO_PUBKEY <id> [closed]

安稳与你 提交于 2019-12-03 00:20:48
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 8 years ago . Trying to update some repositories on Debian Etch installation and getting the following errors from running "apt-get update" W: GPG error: http://www.debian-multimedia.org etch Release: The following signatures couldn't be verified because teh public key is not available: NO_PUBKEY 07DC563D1F41B907 W: You may

How to run gpg from a script run by cron?

北战南征 提交于 2019-12-02 23:41:15
I have a script that has a part that looks like that: for file in `ls *.tar.gz`; do echo encrypting $file gpg --passphrase-file /home/$USER/.gnupg/backup-passphrase \ --simple-sk-checksum -c $file done For some reason if I run this script manually, works perfectly fine and all files are encrypted. If I run this as cron job, echo $file works fine (I see "encrypting <file>" in the log), but the file doesn't get encrypted and gpg silent fails with no stdout/stderr output. Any clues? It turns out that the answer was easier than I expected. There is a --batch parameter missing, gpg tries to read

GPG (PGP) decryption in client side web applications

拟墨画扇 提交于 2019-12-02 22:39:14
How would I be able to decrypt some encrypted data on the client side of a web application? E.g. The data is stored encrypted on the server. It was encrypted using a public GPG key. The server sends the encrypted to the client. The client needs to decrypt it using their local private key. Assumably I would be able to pass the private key to the browser and use Javascript to decrypt the data. Jens Erat If you want to stick with JavaScript, then have a look at the LGPL library OpenPGP.js . I know I'm coming a bit late to this, but for future reference, there's always an option of using crypto

Suppressing GPG signing for Maven-based continuous integration builds (Travis CI)

我只是一个虾纸丫 提交于 2019-12-02 16:58:15
I'm using Travis-CI to provide continuous integration builds for a few Java open source projects I'm working on. Normally this works smoothly, but I have a problem when the POM specifies GPG signing, e.g. <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.4</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> </plugin> This causes the Travis build to fail - apparently because it does not have a passphrase available while running mvn install . See this

How do I encrypt plaintext with GnuPG?

扶醉桌前 提交于 2019-12-02 15:51:32
I've been working a great deal with GnuPG lately and have come to depend on its ability to encrypt files, etc. However, I am currently working on a couple of projects that involve communication (i.e. chat,email, etc) where I'd like to use existing keys to encrypt/decrypt text itself as opposed to a "container" such as a file or disk image. I suppose I could encrypt the container, convert the stream to base64 (or something appropriate) then mark the text as such, but I would guess there is a more straightforward solution. I'm sure there is something simple I'm missing, but, well, I'm missing it

How to resolve “gpg: command not found” error during RVM installation?

风格不统一 提交于 2019-12-02 14:05:31
I have a new mac pro (OS X 10.9.5) that I get to set up from scratch. I want to install RVM and the first thing it says to do is: Install mpapis public key (might need gpg2 and or sudo ) gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 When I tried I got: gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3 zsh: command not found: gpg I've tried to find a good guide on how to overcome this that also looks trustworthy but I've had no luck. Can someone explain what gpg is, why I dont already have it, and how do I get it the right way. GnuPG (with binary name gpg ) is an application

The key whose key-id is in the signature did not sign this commit

我的梦境 提交于 2019-12-01 23:33:29
I'm trying to sign my git commits, but when I push them to GitHub they have the Unverified badge and The key whose key-id is in the signature did not sign this commit. Someone may be trying to trick you. GPG key ID: mykeyid I find this quite cryptic, in my world the id with which a commit is signed will appear in the signature, as the key with that id signed the commit! Question How is this possible, and how do I solve it? I especially want to be able to sign commits automatically from within my IDE, without needing to enter my passphrase every time. If interested, here is a summary of the

python gnupg.encrypt : no errors but not encrypting data or files

不羁的心 提交于 2019-12-01 20:09:16
问题 using python-gnupg v0.3.5 on windows 7 w/Python 2.7 and GPG4Win v2.2.0 test_gnupg.py results in 2 failures: Test that searching for keys works ... FAIL Doctest: gnupg.GPG.recv_keys ... FAIL 2 keyrings exist in each of these locations(secring & pubring in each): under the GPGHome directory (C:\Program Files (x86)\GNU\GnuPG) under the user profile(C:\Users\\AppData\Roaming\gnupg) If I create GPG instance and set the keyring file path to the user profile pubring.pgp I get a result from GPG.list