Re: gpgconf on FreeBSD-8.2
On Sun, 1 Apr 2012 14:19, je...@seibercom.net said: Sorry, I thought that was obvious. I want to check the file, in this case the ~/.gnupg/gpg.conf file for proper syntax, etc. I am attempting Oh sure. gpgconf --check-programs checks that all programs are properly installed and that there config files are okay. Here is an en example for the output gpg:GPG for OpenPGP:/usr/local/bin/gpg2:1:1: gpg-agent:GPG Agent:/usr/local/bin/gpg-agent:1:1: scdaemon:Smartcard Daemon:/usr/local/bin/scdaemon:1:1: gpgsm:[...]:/usr[...]gpgsm:1:0:/home/[...]/gpgsm.conf:24:invalid option: dirmngr:Directory Manager:/usr/local/bin/dirmngr:1:1: pinentry:PIN and Passphrase Entry:/usr/local/bin/pinentry:1:1: The 1:1 test you that everything is fine for that program, the 1:0 for gpgsm indicates an error in the config file. You may also run it for a single module: gpg--check-options gpgsm which will return just the line for gpgsm. I just figure that the exit code of gpgconf will always be 0 - that is a unfortunate for scripts. The reason is that we developed it for a GUI which parsed the output. I will need to check the GUI code to see whether we can change it to return 1 on error. Shalom-Salam, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: gpgconf on FreeBSD-8.2
On Mon, 02 Apr 2012 11:25:32 +0200 Werner Koch articulated: On Sun, 1 Apr 2012 14:19, je...@seibercom.net said: Sorry, I thought that was obvious. I want to check the file, in this case the ~/.gnupg/gpg.conf file for proper syntax, etc. I am attempting Oh sure. gpgconf --check-programs checks that all programs are properly installed and that there config files are okay. Here is an en example for the output gpg:GPG for OpenPGP:/usr/local/bin/gpg2:1:1: gpg-agent:GPG Agent:/usr/local/bin/gpg-agent:1:1: scdaemon:Smartcard Daemon:/usr/local/bin/scdaemon:1:1: gpgsm:[...]:/usr[...]gpgsm:1:0:/home/[...]/gpgsm.conf:24:invalid option: dirmngr:Directory Manager:/usr/local/bin/dirmngr:1:1: pinentry:PIN and Passphrase Entry:/usr/local/bin/pinentry:1:1: The 1:1 test you that everything is fine for that program, the 1:0 for gpgsm indicates an error in the config file. You may also run it for a single module: gpg--check-options gpgsm which will return just the line for gpgsm. I just figure that the exit code of gpgconf will always be 0 - that is a unfortunate for scripts. The reason is that we developed it for a GUI which parsed the output. I will need to check the GUI code to see whether we can change it to return 1 on error. $ gpgconf --check-programs gpg:GPG for OpenPGP:/usr/local/bin/gpg2:1:1: gpg-agent:GPG Agent:/usr/local/bin/gpg-agent:1:1: gpgconf: error running `/usr/local/bin/scdaemon': probably not installed scdaemon:Smartcard Daemon:/usr/local/bin/scdaemon:0:0: gpgsm:GPG for S/MIME:/usr/local/bin/gpgsm:1:1: dirmngr:Directory Manager:/usr/local/bin/dirmngr:1:1: $ gpgconf --check-options gpg gpg:GPG for OpenPGP:/usr/local/bin/gpg2:1:1: However, since I do not have a global gpg configuration file, what file is it checking, if any? I assume it is not checking the ~/.gnupg.gpg.conf file, since if I try to check it manually with gpgconf, it reports errors. -- Jerry ♔ Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
AUTO: Christoph Brueckner is out of the office. (returning 10.04.2012)
I am out of the office until 10.04.2012. I will respond to your message when I return. Note: This is an automated response to your message Re: gpgconf on FreeBSD-8.2 [ Z1 UNGESICHERT ] sent on 04/02/2012 2:22:07 PM. This is the only notification you will receive while this person is away. smime.p7s Description: S/MIME cryptographic signature ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: gpgconf on FreeBSD-8.2
On Mon, 2 Apr 2012 14:22, je...@seibercom.net said: However, since I do not have a global gpg configuration file, what file is it checking, if any? I assume it is not checking the ~/.gnupg.gpg.conf file, since if I try to check it manually with gpgconf, it reports errors. You can't check it manually. gpgconf knows which configuration files belongs to which modules. Technically gpgconf calls gpg with the options this way: gpg2 --gpgconf-test However, it is better to use gpgconf, the way you did it. Shalom-Salam, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users
Re: AUTO: Christoph Brueckner is out of the office. (returning 10.04.2012)
On Mon, 2 Apr 2012 16:02, c.brueck...@zertificon.com said: I will respond to your message when I return. Well, this is a mailing list. You should fix your mail gateway software to comply with best mail practises establish 20 years or so ago. Note: This is an automated response to your message Re: gpgconf on FreeBSD-8.2 [ Z1 UNGESICHERT ] sent on 04/02/2012 2:22:07 PM. BTW, your Z1 certificate server seems to run a pretty old GnuPG version (1.4.6). Salam-Shalom, Werner -- Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. ___ Gnupg-users mailing list Gnupg-users@gnupg.org http://lists.gnupg.org/mailman/listinfo/gnupg-users