Questions tagged [gnupg]

GNU Privacy Guard (GnuPG / GPG) is a cryptography suite implementing secret-key cryptography and public-key cryptography. GnuPG is the GNU project's complete and free implementation of the OpenPGP standard as defined by RFC4880. Use this tag for programmatic use of the GPG tool or its library. Questions about direct usage of the GPG tool or its graphical pendents belong on Super User.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

public key not found error in python webserver [closed]

#!/usr/bin/python # -*- coding: utf-8 -*- import subprocess,os '''when i try to run the gnupg encryption using python scripts , it is working fine, but the same doesn't work when i run the same ...
Sindhu DH's user avatar
0 votes
0 answers
16 views

How to generate a gpg secret key that starts with the tag 0x14, or works with gradle 7.3?

I'm learning how to publish android library in mavenCentral, and my first demo with gradle 8.2 published ok. The problem is, my large office projects use gradle 7.3, and so I am decreasing / matching ...
Qazi Fahim Farhan's user avatar
-3 votes
0 answers
20 views

How do you permanently set the pinentry agent in Kali Linux? Pinentry not working [closed]

Kali Linux pinentry programs GPA Error Message Hey, I'm moving my gpg keys from Ubuntu to Kali Linux but the pinentry prompt won't launch on Kali. Do I have to set a default pinentry program or change ...
LinuxProgrammer1's user avatar
0 votes
0 answers
37 views

How to securely distribute PGP public keys?

GPG signing is a bit different compared to signtool on Windows and codesign on Mac, as PGP certificates are self-signed and there is no chain of trust. So, say someone develops an application on Linux ...
fhcat's user avatar
  • 1,043
0 votes
0 answers
23 views

GPG key not working for signing commits in Github

I got this to work one time, but now it won't work anymore. It said the commits were "verified" with a GPG key I used and then later they said "unverified". I created a new key and ...
ThrownRedstone's user avatar
0 votes
0 answers
30 views

How to encrypt file GPG

How to encrypt file GPG I have a public key that has the following format 9903 2e04 655d 362b 1108 00a5 dbe1 82fe 44f0 eed7 7085 b773 cffe c414 cb4f de57 d09d e940 f28b dee2 e629 3e21 76ec 5201 9bcf ...
Steven Valencia's user avatar
0 votes
0 answers
42 views

Unable to sign GitHub commit from Eclipse

I am trying to sign my commits, from Eclipse IDE, using GPG (as implemented by Git). I have generated the keys, updated the necessary configuration, bot on my computer and GitHub, but I can not get ...
Cosmin Staicu's user avatar
0 votes
0 answers
54 views

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

Objective - I am currently trying to automate the deployment of a Java package to Maven Central through GitHub Actions. As publishing requires to sign artifacts I added maven-gpg-plugin to pom.xml. So ...
Hugo Bois's user avatar
  • 121
1 vote
0 answers
31 views

echo server is not signing Helm chart

I am attempting to create a microservice (echo server in go) that I can deploy in a Kubernetes environment that will simply sign a Helm chart. The idea is that I will mount a keyring (using Vault) to ...
user1314147's user avatar
0 votes
0 answers
14 views

How to link libgpg-error installed in custom directory to build the libgcrypt

I'm attempting to compile libgcrypt 1.8.10. I encountered the following issue when attempting to create libgcrypt with the command ./configure: >checking whether to enable AMD64 as(1) feature ...
Abhijith Ea's user avatar
0 votes
1 answer
80 views

Is there a way to automatically verify git commits on each pull?

This is the inverse of this question. Is there an easy way to make Git always verify the pgp signature of the HEAD of any branch it pulls and fail if the signature is bad? Much like commit.gpgSign but ...
Tenders McChiken's user avatar
2 votes
1 answer
93 views

How to deploy on Maven Central?

I'm trying to deploy my project into maven central. I have installed GnuPg via homebrew: brew install gnupg so when executing gpg --version the following is returned: gpg (GnuPG) 2.4.3 libgcrypt ...
Paul Marcelin Bejan's user avatar
0 votes
0 answers
291 views

DEPRECATION: gpg 1.14.0-unknown has a non-standard version number

I do have installed pip-23.3.1 on Debian/Raspberian Bullseye, I am not aware how that gpg 1.14.0-unknown got installed, details are pip show gpg Name: gpg Version: 1.14.0-unknown Summary: Python ...
mirux's user avatar
  • 1
1 vote
0 answers
54 views

PHP GnuPG Extension Not Working with Nginx, Fails to add PGP Key

I'm trying to use the PHP GnuPG extension to perform PGP encryption in my PHP script. The script works as expected when running with the built-in test server (php -S), but it fails to import a PGP ...
mxrvin.thiele's user avatar
0 votes
0 answers
49 views

Lambda function issue with "gpg returned a non-zero error code"

I'm facing an issue trying to encrypt file with gnupg in AWS lambda. the error I got: gpg returned a non-zero error code: 2 so I have an ECR image for the lambda function that contains the binary for ...
Andy Pham's user avatar
0 votes
0 answers
89 views

Decrypt large files [+500 GiB] with python-gnupg

TL;DR: I have solved decrypting large-ish files in-memory (~50GiB) using gpg.on_data = processor, but still stumped on very large files (+500 GiB). We have large mydata.gz.gpg files in blob storage ...
mrkanuke's user avatar
0 votes
1 answer
129 views

How do I use gpg --pinentry-mode loopback in a bash script?

When decrypting a file, if I use any method other than --pinentry-mode loopback I get the following error. gpg: public key decryption failed: Permission denied gpg: decryption failed: No secret key I ...
Jeremy's user avatar
  • 587
0 votes
0 answers
24 views

gpgme: cache passphrase for symmetric encryption

I use gpgme library to encrypt several files symmetrically. They are encrypted with the same key (because of the same passphrase). Is it possible to cache passphrase for a chain of encryption and ...
Georgy Firsov's user avatar
0 votes
0 answers
39 views

Node JS equivalent of this command using openpgp gpg --recipient <Hex_Key_Id> --armor --always-trust --encrypt test_pwd.txt; rm -f test_pwd.txt

I'm trying to encrypt text using OpenPGP, but it is not similar to the value generated by CLI Command: `gpg --recipient <Hex_Key_Id> --armor --always-trust --encrypt test_pwd.txt; rm -f test_pwd....
Mohammed Adil Yousuf's user avatar
0 votes
1 answer
39 views

gpg with --clearsign damaged files

I'm having some problems unpacking the tgz archive because gnupg with --clearsign corrupted my file and the checksum is now incorrect. I found similar topics, but without any answers to them. On the ...
Reyastr's user avatar
0 votes
1 answer
198 views

How do I fix "base64: invalid input" error in github workflow publish (gpg)?

I'm running a github workflow I've used many times in the past to publish code to nexus. It is failing now. I haven't used it in a while, so it's possible my original key expired...been >3 yrs ...
Greg's user avatar
  • 10.9k
1 vote
1 answer
86 views

How to implement gpg encryption in git bash

I am trying to implement gpg encryption both in a shell script and at the prompt in git bash, but I get the following error: usage: gpg [options] --encrypt [filename] The code is as follows: #!/bin/...
Ritwik Mohapatra's user avatar
0 votes
1 answer
244 views

Hanging GPG commands

I am unable to commit using the git commit command (The console just hangs). Using the GIT_TRACE command I have found that it is handing on: run-command.c:655 trace: run_command: gpg --status-fd=2 -...
b.herring's user avatar
  • 563
1 vote
1 answer
207 views

gpg: DBG: kbx_client_data_cmd: finished command with error: Not initialized

I suddenly get the following error when using most gpg commands after deleting a stale lockfile and cannot understand the reason/how to proceed ~ > gpg --list-secret-keys ...
quilly3's user avatar
  • 19
0 votes
0 answers
21 views

Cannot read jks file in site, 403 error, server linux -tomcat & nginx

few days ago, I made an upgrade gnupg in linux server. Since then, web applications that are placed on the server tomcat 8 -> nginx 10 have stopped working. After installing a new tomcat instance, ...
siooteq's user avatar
1 vote
0 answers
88 views

How to use environment variable for .gpg file path in Gradle signing plugin?

Following the documentation here, it says to set your key, password, and keyring filepath in gradle.properties: signing.keyId=24875D73 signing.password=secret signing.secretKeyRingFile=/Users/me/....
Tenfour04's user avatar
  • 86.1k
0 votes
0 answers
181 views

gpg: public key decryption failed: No such file or directory

We are running commands in SSH in AWS Glue to decrypt file in EC2, all public key and private keys are imported and passing passphrase in --batch command, but errors out as: gpg: public key decryption ...
Abhishek Jain's user avatar
1 vote
1 answer
275 views

Some GPG Commands Suddenly Failing in Dockerfile on AWS

We have the following Dockerfile (I have removed the unecessary parts) which we have used for well over a year now and suddenly, when it gets to the gpg --batch --verify... step the build hangs during ...
Jay Blanchard's user avatar
-1 votes
1 answer
119 views

VSCode Dev Container GPG Windows WSL error

I'm trying to get GPG to work in my dev container (default python container) under Windows WSL2 for signed commits and getting error when trying to reload gpg agent. Following official guide: ...
cyberia's user avatar
0 votes
0 answers
66 views

EasyPG passphrase confirmation

I keep secrets in a GPG passphrase-encrypted file, which I access through Emacs/EasyPG. This works fine, but when I change the file and write it, I have to enter the passphrase twice (once extra for ...
René Steetskamp's user avatar
0 votes
0 answers
115 views

Is a CSPN certified Yubikey 5 NFC (Firmware version 5.4.2) supposed to support OpenPGP?

I have been using a CSPN certified YubiKey 5 NFC running Firmware Version 5.4.2 for some time now. The only thing I haven't been able to properly set up are my OpenPGP keys. At first I assumed that ...
AndreasChris's user avatar
1 vote
1 answer
203 views

can't connect to the gpg-agent: IPC connect call failed in windows 10 vscode

I want to singing my commit in git but vscode cli return this error ! git commit -S -m 'Message Commit' gpg: can't connect to the gpg-agent: IPC connect call failed gpg:keydb_search failed: No agent ...
mamad2559's user avatar
  • 347
0 votes
0 answers
59 views

bad signature using gpg to verify Ubuntu download

GPG gave a "BAD signature" response when verifying a downloaded Ubuntu ISO image after following the Ubuntu desktop download verification steps. I got the same response (below) when re-...
Stuart Hodgson's user avatar
0 votes
0 answers
28 views

switching user sessions GPG signature not work

In the same terminal I need to switch user and be able to use gnugpg properly The next script (which could also be a bash alias) to switch the terminal shell to another user. I want running this ...
st3b1t's user avatar
  • 3
0 votes
1 answer
157 views

How to use terraform script to create IAM user with gpg key?

Per the doc https://registry.terraform.io/providers/hashicorp/aws/3.24.0/docs/resources/iam_user_login_profile, it requires a base-64 encoded PGP public key. I use gpg command created the key. gpg --...
user20208419's user avatar
0 votes
0 answers
17 views

Helm Chart Provenance check GnuPG command is not working on windows PowerShell

We are using Helm chart and need to generate provenance file during packaging of chart, by using GnuPG. But GnuPG commands are not working into windows powershell and gives below error When we export ...
Harsh Gajjar's user avatar
0 votes
0 answers
26 views

gpg-agent GENKEY via cli for simplest RSA , invalid length specifier in sexp returned, using documentation example

https://www.gnupg.org/documentation/manuals/gnupg/Agent-GENKEY.html When I execute gpg-agent --server for an interactive session, and enter the example from this site, I get the following error : &...
greenwall7351's user avatar
1 vote
1 answer
55 views

Why does this gpg in golang command return a No Such File Or Directory error on windows when attempting to encrypt a temporary file?

This function works fine on linux but for some reason on windows it always returns a file not found error pointing to the location of the temporary file. If i get the temporary file by its name and ...
pvwn's user avatar
  • 11
1 vote
1 answer
97 views

How do I disable GPG signing for `git rebase --continue`?

I am attempting to rebase a branch. My GPG/SSH agent setup is broken - git rebase --continue attempts to sign the commit and fails. I have done everything I can think of to disable GPG and nothing is ...
Ethan Reesor's user avatar
  • 2,100
0 votes
0 answers
99 views

gnupg File Encryption using C#.net

i have requirement to do gnupg file encryption in .Net Console application . source system already shared me the public key , using the public key i need to encrypt the ZIP folder using gnupg file ...
Kumar's user avatar
  • 1
2 votes
1 answer
442 views

Gpg hangs when listing keys (docker install)

I try to setup a docker image to tar and encrypt files. My problem is when I try to do it with a Dockerfile, when I gpg --list-keys, shell hangs and nothing happens. There is no error message. I see ...
Remi's user avatar
  • 23
2 votes
2 answers
244 views

GPG keys not shared between Windows and Visual Studio Code dev container... what I'm doing wrong?

As explained in Sharing GPG Keys official documentation: I'm running Windows and I've installed Gpg4win I've configured the key using the Windows GUI Keys is listed correctly: PS C:\Users\Me\Desktop&...
gremo's user avatar
  • 47.3k
0 votes
0 answers
24 views

Sign PGP key with another key in PHP

Actually exactly what is written in the title. I couldn't really figure out how to do this or if this is even possible and it also seems like there is no info about this online. To be honest I tried ...
Spikey's user avatar
  • 1
1 vote
1 answer
193 views

GPG Commit Signing Stuck on Windows

First some background information about my current setup. On Windows 11 using PowerShell 7 in Windows Terminal I have the following configuration enabled: # $HOME\.gitconfig user.signingkey=...
StefanGreve's user avatar
0 votes
0 answers
73 views

Add multi-participants with git-remote-gcrypt

I'm learnning how to use git-remote-gcrypt with multi-participants. Let's say I have two computers acting as two user/participants. I do things like following: Step1: Generate GPG key pairs for them ...
Leon's user avatar
  • 1,661
1 vote
0 answers
64 views

GnuPG - SSIS Package Error - The process exit code was "2" while the expected was "0"

I have a SSIS package which encrypts files and places the encrypted files to a shared location. \SRV1\PROD\Files\ The server SRV1 is to be decommissioned hence I changed the connection in the SSIS ...
Anil's user avatar
  • 11
0 votes
0 answers
290 views

How to use GPG keys with Yubikey in WSL2 to authenticate GIT?

I am trying to setup Yubikey in WSL2 (Ubuntu distro) to use GPG key as SSH keys to authenticate to GIT server. Below is my setup YubiKey Manager (ykman) version: 5.1.1 How was it installed?: Using ...
Preeti 's user avatar
  • 577
0 votes
0 answers
153 views

Dockerfile requiring GPG key when shared with someone else

I wrote a Dockerfile for a project I was working on, when I run with sudo docker image build it works fine, however without sudo it asks for my gpg secret key. Now this obviously means I can't share ...
MKH's user avatar
  • 1
0 votes
0 answers
28 views

Python - GPG Encrypt From Task Scheduler

I have a simple python script that is GPG encrypting a file using the GNUPG library. The script works as expected when I execute it manually in Visual Studio code. It also works in windows task ...
user2368085's user avatar
0 votes
0 answers
177 views

deprecation error using GnuPG in python 3.8

I am trying to decrypt a pgp file using the python library called 'python-gnupg', I tried to decrypt the file using python 3.7 and all went well, however when I try to switch to python 3.8 the ...
Mr Halcolo's user avatar

1
2 3 4 5
36