gnupg

Batch encrypt with public key using Gpg4win command line

烈酒焚心 提交于 2019-12-22 09:39:52
问题 We are setting up our first EDI system that relies on incoming and outgoing file encryption using OpenPGP. The incoming files that are encrypted with our public key, we can successfully decrypt using our private key using Gpg4win's command line option: gpg --batch --passphrase "SOME_KEY" --decrypt-files "%decryptingdir%\*.pgp" What I now need to do, is the reverse, and encrypt the outgoing files using our partners public key. I have been unable to find any command line documentation around

We encrypt a file for a client using BouncyCastle API. He gets a “For your eyes only” message from PGP when trying to decrypt it. Why?

若如初见. 提交于 2019-12-22 06:39:04
问题 We use the Bouncy.Castle C# API to do PGP encryption. I am by no means an expert on PGP encryption and the various options available. The encryption seems to run fine, however, when the client tries to decrypt it, he says that PGP won't output to file but only output to screen because it is marked "For your eyes only." This is the --verbose message: pgp --decrypt Client_FileExport_20110510_020011.zip.pgp Client_FileExport_20110511_132203.zip.pgp --info verbose McAfee E-Business Server v8.5 -

How to deal with Gnupg error: gpg: no default secret key: No secret key gpg: [stdin]: clearsign failed: No secret key?

孤人 提交于 2019-12-22 04:27:10
问题 I am getting an error: gpg: no default secret key: No secret key gpg: [stdin]: clearsign failed: No secret key My secret keys are available to GPG. 回答1: It might be difference between gpg1 and gpg2. The secret keys are stored in different ways. You may have both of them. Try which gpg gpg2 If you do have both, run: gpg2 --list-secret gpg --list-secret You maybe able to tell that one works, another does not. 回答2: Here's the answer: I am using latest gnupg version , but I have to use 0.44 gnupg

JavaScript: Decrypt content of GnuPG encrypted files using openpgp.js

允我心安 提交于 2019-12-21 17:23:09
问题 I'm trying to write a sample decryptor for GnuPG encrypted files in JavaScript using openpgp.js. So I tried it naively without even asking if it is even possible. I made the following page. popup.html <!doctype html> <!-- --> <html> <head> <title>Popup</title> <script src="openpgp.js"></script> <script src="popup.js"></script> </head> <body> <p>Upload message: </p><input id="message" type="file"/><br> <p>Upload secret key: </p><input id="secret" type="file"/><br> <p>Secret key password: </p>

How do I get the maven-gpg-plugin to use a passphrase from environment variable or command line property?

旧城冷巷雨未停 提交于 2019-12-21 12:17:27
问题 I've seen: Avoid gpg signing prompt when using Maven release plugin but it's for a very old version of maven, and I'm using 3.2.2, so the same solution doesn't apply. Basically, no matter what combination of properties on the command line, properties in the pom.xml, or environment variables I cannot get the maven gpg plugin to avoid popping up the agent dialog. We've decided for security reasons to not include the passphrase in plain text in the settings.xml, because that's a terrible idea.

GnuPGME: GPG Signature C++

岁酱吖の 提交于 2019-12-21 05:34:06
问题 Has anyone written any tutorials or have any documentation on how to use GnuPGME so I would be able to write a function such as gpgSign(std::string fileToBeSigned, std::string outPutFileName) in C++? 回答1: Below is a C example with verbose comments that does what you are looking for - it is not the most direct approach, but should illustrate the how to accomplish signing a file. It does not handle selection of signers, but the GPGME docs should help you there. You can save the file and make

gpg: Sorry, no terminal at all requested - can't get input

南笙酒味 提交于 2019-12-21 02:07:09
问题 When decrypting I get following error: $ eyaml decrypt -s 'ENC and the key goes on here' .gnupg --quiet --no-secmem-warning --no-permission-warning --no-tty --yes --decrypt) failed with: gpg: Sorry, no terminal at all requested - can't get input I have checked my keys, everything is in order. At this point I am out of options. 回答1: If you configured Automatic Git commit signing with GPG on macOS and you see this error comment out no-tty in ~/.gnupg/gpg.conf as suggested by Fahl-Design. This

IntelliJ fails to commit changes when attempting to sign commit (GPG)

狂风中的少年 提交于 2019-12-20 17:30:16
问题 I have been working on setting up my development environment, so when I create a commit it is automatically signed by GPG. I followed Githubs documentation on the matter here: https://help.github.com/categories/gpg/. I am attempting to use IntelliJ's git interface to create a commit, but it always fails with this error. gpg: cannot open `/dev/tty`: Device not configured error: gpg failed to sign the data fatal: failed to write commit object I do not encounter this error when using git

GPG vs SSH keys

偶尔善良 提交于 2019-12-20 16:31:48
问题 On GitHub, I want to add a key to associate my computer with my account and I am given two options: create an SSH or a GPG key. What is the difference between the two keys? and is there a preferred one to use? I understand how to create both by following the guide on the site but I don't know which one is better to use. 回答1: I want to add a key to associate my computer with my account and I am given two options You will need at least the SSH one, if you want to push back to your repository,

GPG vs SSH keys

故事扮演 提交于 2019-12-20 16:29:12
问题 On GitHub, I want to add a key to associate my computer with my account and I am given two options: create an SSH or a GPG key. What is the difference between the two keys? and is there a preferred one to use? I understand how to create both by following the guide on the site but I don't know which one is better to use. 回答1: I want to add a key to associate my computer with my account and I am given two options You will need at least the SSH one, if you want to push back to your repository,