gnupg

gpg decryption fails with no secret key error

試著忘記壹切 提交于 2019-12-18 11:02:15
问题 I have a gpg .key file that is used as passphrase for decrypting a .dat.pgp file. The encrypted .data.pgp file gets successfully decrypted on one server with same .key file using following command cat xxx_gpg.key | /usr/bin/gpg --batch --quiet -o xxx.dat --passphrase-fd O -d xxx.dat.pgp But, when I move same key to another server xxx_gpg.key and run same above command, I get following error - gpg: decryption failed: No secret key EDIT: I find that gpg --list-secret-keys returns some data on

gpg decryption fails with no secret key error

妖精的绣舞 提交于 2019-12-18 11:01:16
问题 I have a gpg .key file that is used as passphrase for decrypting a .dat.pgp file. The encrypted .data.pgp file gets successfully decrypted on one server with same .key file using following command cat xxx_gpg.key | /usr/bin/gpg --batch --quiet -o xxx.dat --passphrase-fd O -d xxx.dat.pgp But, when I move same key to another server xxx_gpg.key and run same above command, I get following error - gpg: decryption failed: No secret key EDIT: I find that gpg --list-secret-keys returns some data on

How to retain commit gpg-signature after interactive rebase squashing?

北城余情 提交于 2019-12-18 10:50:32
问题 When I want to squash some commits by interactive rebase : git rebase -i HEAD~3 And then: pick cbd03e3 Final commit (signed) s f522f5d bla-bla-bla (signed) s 09a7b7c bla-bla (signed) # Rebase c2e142e..09a7b7c onto c2e142e ... The final commit haven't gpg-signature despite that all of those commits have same signature. Is it possible to retain commit gpg-signature after interactive rebase squash? 回答1: Like Cupcake stated, you can't retain the old signature from the unsquashed commits, but you

Avoid gpg signing prompt when using Maven release plugin

故事扮演 提交于 2019-12-18 10:42:06
问题 I've got a Maven project that I'm trying to configure to use the maven release plugin. Part of the release process is to use the Maven GPG Plugin to sign artifacts which requires among other things, the GPG signing key passphrase to succeed. Because these builds need to be runnable in a non interactive environment, (CI-Server) these params are passed in as arguments to maven in the form of -Dgpg.passphrase=XXX For snapshot builds everything works fine; the Maven GPG Plugin sees the passed in

Is there a good GnuPG encryption library for Java/Scala? [closed]

南楼画角 提交于 2019-12-18 10:13:49
问题 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 12 months ago . I would like to be able to encrypt files on disk and/or data in memory using GnuPG from a Java application. If possible I'd like to avoid having to make system calls out to the GPG command line tools. Is there a recommended library, or can you recommend the best approach to GPG encrypting from Java (or Scala)?

gpg --passphrase-fd not working with python 3 subprocess

感情迁移 提交于 2019-12-18 04:25:11
问题 The following script encrypt_me.py (modified from another post) encrypts itself with gpg and prints out the ciphertext in armored form. However it only works on python2.7 but not python3? Do you have any idea what's wrong when it's running on python3? import subprocess import shlex import os import sys in_fd, out_fd = os.pipe() passphrase = 'passsssphrase' os.write(out_fd, passphrase.encode('utf-8')) os.close(out_fd) cmd = 'gpg --passphrase-fd {fd} -c --armor'.format(fd=in_fd) with open(_

How do you use the PHP OpenPGP library?

被刻印的时光 ゝ 提交于 2019-12-17 22:33:59
问题 There is a PHP extension port of the gnupg PGP library. However, I'm having a hard time finding examples that explain how to use the library. How do you properly create keys for application users, and then use them to encrypt/decrypt text using the GnuPG library? 回答1: See this URL it is very help full to you. Download example and try it. https://github.com/singpolyma/openpgp-php Or Try it:- You can download lib/openpgp.php and lib/openpgp_crypt_rsa.php files in above the URL. examples/keygen

Git error - gpg failed to sign data

不羁岁月 提交于 2019-12-17 21:38:54
问题 I just started using git and I install git and gpg via homebrew. For some reason, I get this error when i do git commit I looked at so many other stackoverflow questions regarding this topic and none of them worked for me. How can I fix this error so that I can upload successfully. error: gpg failed to sign the data fatal: failed to write commit object 回答1: For troubleshooting, two things to first try: run git config --global gpg.program gpg2 , to make sure git uses gpg2 and not gpg run echo

How to sign git commits from within an IDE like IntelliJ?

与世无争的帅哥 提交于 2019-12-17 18:17:48
问题 Question How do I sign git commits using an IDE like IntelliJ on Windows? If you're interested, read what I tried here: I followed mainly Github's guide. I made sure to not forget to restart bash/IntelliJ after you changed config files. Generate a new GPG key pair Add the GPG key to my GitHub account Associate a verified (by GitHub) email with my GPG key where I made sure the email in my .gitconfig is the same. Tell Git about my GPG key Sign a commit with GPG and confirmed that it was Verfied

How to generate gpg signing keys in bintray for jcenter in windows

笑着哭i 提交于 2019-12-14 03:39:39
问题 I am unable to get GPG signing keys. Please any one tell me. Thanks How to generate gps signing keys in windows for jcenter 回答1: Windows users can generate GPG keys using GPG4Win. There are many tutorials available, for example this one. 回答2: For Linux/Mac you can use gpg . I learned how to do this here. I needed to prefix the following commands with sudo . Generate the keys gpg --gen-key Follow the defaults but enter your name and email and optionally a password. List the keys. gpg --list