Re: Hi , request help on a problem with gnupg that gpg decryption does not return after creating the decrypted file
Hi, On Friday, May 11, 2018 10:27:34 AM CEST arinit wrote: > Requesting inputs from anyone , if you have faced any issues on GPG decryption which is done uninteractively > > The version used is : gpg (GnuPG) Version: 2.2.4 / libgcrypt 1.8.2 windows > And automated job is scheduled from controlM to run on a Windows Edition - Windows Server 2016 Datacenter. > The return code is empty for decryption, even if it is handled at shell level , it looks GPG agent hangs and the job does not exit > The automated job uses commands like below along with other housekeeping functionality > gpg --debug-all -vvv --batch --pinentry-mode loopback --passphrase-file -o “ouputfile” --yes –decrypt “file to decrypt” > if it is made to kill the gpg ajent uninteractively after the outputs are generated then only the job exits with ok status In addition to the note about the missing argument to passphrase-file, it might also be that you are running into: https://wiki.gnupg.org/TroubleShooting#Windows_. 3E_8_and_Server_2012_Task_Scheduler_Problems Using the task scheduler GNUPG has a different Home Directory, so you might want to parse the --homedir parameter to specify directly which home directory (the directory with the keys etc.) should be used. Best Regards, Andre Heinecke -- Andre Heinecke | ++49-541-335083-262 | http://www.intevation.de/ Intevation GmbH, Neuer Graben 17, 49074 Osnabrück | AG Osnabrück, HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner signature.asc Description: This is a digitally signed message part. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: smartcards and GPGME
Hello Jacob. Am Sonntag, den 13.05.2018, 18:26 -0400 schrieb Jacob Adams: > Hello all, > > As part of a program I'm writing this summer for GSoC, I'd like to be > able to both move gpg private keys to a smartcard and generate keys > on > the smartcard from an application. While this can be done from gpg, > it > doesn't look like I can do so from GPGME or any other wrappers that > exist. Have I missed something or is this simply not possible yet? GPGsm does not do anything with GPG keys directly. The Keys it creates are stored inside GPGsm and are derived from GPG keys, AFAIU. For your purpose you have to use the GPGme library. > While I could wrap this functionality of gpg, I'd really prefer not > to > and I'd rather not drop the user to a gpg prompt if I don't have to. GPGme does what you are trying to do, without prompting, except for cases where PIN or password are required. This events are handled by gpg-agent. GPGsm is for managing X.509 certificates. I'm not sure if it can handle moved keys. It should, if it interaqcts with gpg-agent. That's something I'm not really sure of. Regards, Dirk -- Dirk Gottschalk Paulusstrasse 6-8 52064 Aachen Tel.: +49 1573 1152350 signature.asc Description: This is a digitally signed message part ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
smartcards and GPGME
Hello all, As part of a program I'm writing this summer for GSoC, I'd like to be able to both move gpg private keys to a smartcard and generate keys on the smartcard from an application. While this can be done from gpg, it doesn't look like I can do so from GPGME or any other wrappers that exist. Have I missed something or is this simply not possible yet? While I could wrap this functionality of gpg, I'd really prefer not to and I'd rather not drop the user to a gpg prompt if I don't have to. Thanks, Jacob ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users