Re: GPG is not working because of gpg.conf

2018-03-06 Thread Werner Koch
On Tue,  6 Mar 2018 10:30, tliko...@iki.fi said:

> The feature is not documented in 2.1.18. Is it documented in newer
> versions?

It is kind of an emergency option in case we accidently remove an option
;-)


Shalom-Salam,

   Werner

-- 
#  Please read:  Daniel Ellsberg - The Doomsday Machine  #
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


pgph3uJY2lEro.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GPG is not working because of gpg.conf

2018-03-06 Thread Teemu Likonen
Werner Koch [2018-03-05 13:24:28+01] wrote:

> gpg searches for its configurarion file in this order (I use 1.4.23 as
> example):
>
>   gpg.conf-1.4.23
>   gpg.conf-1.4
>   gpg.conf-1
>   gpg.conf

That feature is not documented in 2.1.18 but it seems to work. (I tried
"gpg.conf-2.1".)


-- 
/// Teemu Likonen   - .-..    //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///


signature.asc
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GPG is not working because of gpg.conf

2018-03-06 Thread Teemu Likonen
Werner Koch [2018-03-06 09:53:01+01] wrote:

> Note that there is another compatibility feature which can be used to
> ignore errors due to new options.  For example:
>
> ignore-invalid-option  foo bar
> verbose
> foo

> This feature is available since 1.4.13 and 2.0.20 .

The feature is not documented in 2.1.18. Is it documented in newer
versions?

-- 
/// Teemu Likonen   - .-..    //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///


signature.asc
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GPG is not working because of gpg.conf

2018-03-06 Thread Werner Koch
On Mon,  5 Mar 2018 19:30, b...@adversary.org said:

> Good to know, but will a version of GPG always select the highest in a
> listor the closest number to its own version number if there's not an
> exact match?

No, the algorithm views the version as a string simply trims the
dot/dash delimted parts one after the other until it finds an _exact_
match.

> Now if I'm using 1.4.21, will it select the closest version number
> (1.4.20) or the highest (1.4.23)?

It will use 1.4

Note that there is another compatibility feature which can be used to
ignore errors due to new options.  For example:

--8<---cut here---start->8---
ignore-invalid-option  foo bar
verbose
foo
--8<---cut here---end--->8---

Here foo is an option only available in 2.3.0 but you want to use this
gpg.conf also with gpg 2.2.5.  The ignore-invalid-option meta option
will silently ignore unknown options named "foo" or "bar".  Multiple
ignore-invalid-option lines are cumulative.

This feature is available since 1.4.13 and 2.0.20 .


Shalom-Salam,

   Werner

-- 
#  Please read:  Daniel Ellsberg - The Doomsday Machine  #
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


pgpmtnphZaDAa.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GPG is not working because of gpg.conf

2018-03-05 Thread MFPA
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi


On Monday 5 March 2018 at 6:30:16 PM, in
, Ben McGinnes
wrote:-


> So if we slightly modify that example and say we have
> these conf
> files:

>  1. gpg.conf-1.4.23
>  2. gpg.conf-1.4.20
>  3. gpg.conf-1.4
>  4. gpg.conf-1
>  5. gpg.conf

> Now if I'm using 1.4.21, will it select the closest
> version number
> (1.4.20) or the highest (1.4.23)?

I would have expected it to select 1.4.

- --
Best regards

MFPA  

The truth is rarely pure and never simple
-BEGIN PGP SIGNATURE-

iNUEARYKAH0WIQSWDIYo1ZL/jN6LsL/g4t7h1sju+gUCWp21NV8UgAAuAChp
c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0OTYw
Qzg2MjhENTkyRkY4Q0RFOEJCMEJGRTBFMkRFRTFENkM4RUVGQQAKCRDg4t7h1sju
+jUMAQDR/irt5ixECYg64F+f4qwgZ11hqsIqforEmBcmSIUkhgD/QarLecFOL2Yg
0O1X2zuOHqKStjOTalJXGPisivbsoAGJApMEAQEKAH0WIQRSX6konxd5jbM7JygT
DfUWES/A/wUCWp21NV8UgAAuAChpc3N1ZXItZnByQG5vdGF0aW9ucy5vcGVu
cGdwLmZpZnRoaG9yc2VtYW4ubmV0NTI1RkE5Mjg5RjE3Nzk4REIzM0IyNzI4MTMw
REY1MTYxMTJGQzBGRgAKCRATDfUWES/A/8XeD/4xmQ23enmgyZIHT6euylTNHXW1
DMsgGCQPg9laaIv0N5bc5L/XwD0putCOjyapicMetv7T8IY8Dn+ZkPgepkfdY8jd
9hXJBPg5MLyiasayWziBtu0/4ZT35GHLOMMaEBYG6W+OnH3eRcaAsYxD7c1PzI7b
fTR20gJX2tJemSuLLWKNgpt4ZZhJBxeLHmR+BDJ8Tm3hKB0o/xuzXRm0cjEy/ZHh
lo0kpRV6VJgDmArC5bApEXqjADpgYEQFKgL+sdbGI3BV6M7HDGEa10VfxWw+u7fR
H6w0o8bgUtj0IpyFSyUct0BDPqLwO+3gLr0WalgQEMpOBjuF0bNnEJ9PIiO6nsGJ
a7k+n1tO9HxA+94IRWiZyM0HdcXyDXObvIFzFIx1x3LbF7BGFW4nVzoxi9nzJws9
Toquh5noxFyHfJr+P+0uUI2y3LQ4a1Kjga4303BJjxPd+TsycddmTQr80Hakyo+R
vX2jXkCc4ED9Pz2L3vIYsymiyvyBKnvwIlN6+kv1WBoV5nySFUCKQepU/9VEsnLT
GAsiJYjrwPvEERWejOynQU0vkHW6IARwjltLsIEKsK+r6MB+9IQcE3Rgxex63w82
4FE7SpWhU75NwVag/h+Qfes6u6d3gjphAFV50q/bMW4oP7XgW9IPuJacw/Z4tXBo
3NOV/TvoIy5kAOzX/g==
=LrGl
-END PGP SIGNATURE-


___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GPG is not working because of gpg.conf

2018-03-05 Thread Ben McGinnes
On Mon, Mar 05, 2018 at 01:24:28PM +0100, Werner Koch wrote:
> 
> gpg searches for its configurarion file in this order (I use 1.4.23 as
> example):
> 
>   gpg.conf-1.4.23
>   gpg.conf-1.4
>   gpg.conf-1
>   gpg.conf
> 
> The first existing one is used.  This allows to have separate
> configuration files for different gpg versions.  But take care, the GUI
> configuration dialogs parse and modify only gpg.conf.

Good to know, but will a version of GPG always select the highest in a
listor the closest number to its own version number if there's not an
exact match?

So if we slightly modify that example and say we have these conf
files:

 1. gpg.conf-1.4.23
 2. gpg.conf-1.4.20
 3. gpg.conf-1.4
 4. gpg.conf-1
 5. gpg.conf

Now if I'm using 1.4.21, will it select the closest version number
(1.4.20) or the highest (1.4.23)?


Regards,
Ben


signature.asc
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GPG is not working because of gpg.conf

2018-03-05 Thread Werner Koch
On Mon,  5 Mar 2018 10:41, ba...@basix.tech said:

> I don't think this error is because of that because error message says 
> gpg.conf.

gpg searches for its configurarion file in this order (I use 1.4.23 as
example):

  gpg.conf-1.4.23
  gpg.conf-1.4
  gpg.conf-1
  gpg.conf

The first existing one is used.  This allows to have separate
configuration files for different gpg versions.  But take care, the GUI
configuration dialogs parse and modify only gpg.conf.


Shalom-Salam,

   Werner


-- 
#  Please read:  Daniel Ellsberg - The Doomsday Machine  #
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


pgpf_XvSF7I68.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GPG is not working because of gpg.conf

2018-03-05 Thread Peter Lebbing
On 05/03/18 10:41, Basix wrote:
> I don't think this error is because of that because error message says 
> gpg.conf.

The problem is that the log-file option is not supported by GnuPG 1.4;
it was introduced in some 2.x version.

GnuPG 1.4.22 will look for the following files in order:
~/.gnupg/gpg.conf-1.4.22
~/.gnupg/gpg.conf-1.4
~/.gnupg/gpg.conf-1
~/.gnupg/gpg.conf

and it will take the first one it sees and stop there. By creating
gpg.conf-1, it will never get to gpg.conf and take the unsupported
option from there. Any configuration for GnuPG 1.4.22 will have to be
done in gpg.conf-1, and a 2.x version will still pick up the log-file
option from gpg.conf.

HTH,

Peter.

-- 
I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.
You can send me encrypted mail if you want some privacy.
My key is available at 



signature.asc
Description: OpenPGP digital signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GPG is not working because of gpg.conf

2018-03-05 Thread Basix
On Sun, 04 Mar 2018 19:59 +0100, Werner Koch  wrote:
> Create a possible empty file
> 
>~/.gnupg/gpg.conf-1
> 
> this will then be used for the 1.4 version.

I don't think this error is because of that because error message says gpg.conf.

-- 
Public PGP Key:  0F92613C

___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users


Re: GPG is not working because of gpg.conf

2018-03-04 Thread Werner Koch
On Sat,  3 Mar 2018 21:06, ba...@basix.tech said:

> I think Kleopatra or another GPG frontend misconfigured my gpg.conf. How do I 
> fix it myself? My GnuPG version is 1.4.22.

Create a possible empty file

   ~/.gnupg/gpg.conf-1

this will then be used for the 1.4 version.


Shalom-Salam,

   Werner

-- 
#  Please read:  Daniel Ellsberg - The Doomsday Machine  #
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.


pgpRKZRQnXufN.pgp
Description: PGP signature
___
Gnupg-users mailing list
Gnupg-users@gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-users