mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
dirmngr,gpg: Better diagnostic in case of bad TLS certificates.
* doc/DETAILS: Specify new status code "NOTE". * dirmngr/ks-engine-http.c (ks_http_fetch): Print a NOTE status for a bad TLS certificate. * g10/call-dirmngr.c (ks_status_cb): Detect this status. -- For example a gpg -v --locate-external-keys dd9jn@posteo.net now yields gpg: Note: server uses an invalid certificate gpg: (further info: bad cert for 'posteo.net': \ Hostname does not match the certificate) gpg: error retrieving 'dd9jn@posteo.net' via WKD: Wrong name gpg: error reading key: Wrong name (without -v the "further info" line is not shown). Note that even after years Posteo is not able to provide a valid certificate for their .net addresses. Anyway, this help to show the feature. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
4dd5099125
commit
3efc94f1eb
3 changed files with 36 additions and 7 deletions
12
doc/DETAILS
12
doc/DETAILS
|
@ -1046,10 +1046,14 @@ pkd:0:1024:B665B1435F4C2 .... FF26ABB:
|
|||
numerical error code and an underscore; e.g.: "151011327_EOF".
|
||||
*** WARNING <location> <error code> [<text>]
|
||||
This is a generic warning status message, it might be followed by
|
||||
error location specific data. <error code> and <location>
|
||||
should not contain spaces. The error code is a either a string
|
||||
commencing with a letter or such a string prefixed with a
|
||||
numerical error code and an underscore; e.g.: "151011327_EOF".
|
||||
error location specific data. <location> and <error code> may not
|
||||
contain spaces. The <location> may be used to indicate a class of
|
||||
warnings. The error code is a either a string commencing with a
|
||||
letter or such a string prefixed with a numerical error code and
|
||||
an underscore; e.g.: "151011327_EOF".
|
||||
*** NOTE <location> <error code> [<text>]
|
||||
This is a generic info status message the same syntax as for
|
||||
WARNING messages is used.
|
||||
*** SUCCESS [<location>]
|
||||
Positive confirmation that an operation succeeded. It is used
|
||||
similar to ISO-C's EXIT_SUCCESS. <location> is optional but if
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue