<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<pre>Thanks. Yes, the exit status is 0, so the verification succeeds.</pre>
<pre>I used to see output like the following, and I found that it goes to the log when I run KWatchGnuPG.
===
$ gpg --verify pdfsam_5.1.2-1_amd64.deb.asc pdfsam_5.1.2-1_amd64.deb=
gpg: enabled debug flags: memstat
gpg: Signature made Wed 26 Apr 2023 05:58:12 AM EDT
gpg:
using RSA key 9F2499EF7ABB9050D7401BCAA3FC4B4C79E8FD49
gpg: Good signature from "Sober Lemur S.r.l. <a class="moz-txt-link-rfc2396E" href="mailto:info@pdfsam.org"><info@pdfsam.org></a>" [unknown]
gpg: WARNING: This key is not certified with a trusted signature!
gpg:
There is no indication that the signature belongs to the owner.
Primary key fingerprint: 9F24 99EF 7ABB 9050 D740 1BCA A3FC 4B4C 79E8 FD49
gpg: keydb: handles=3 locks=0 parse=3 get=3
gpg:
build=0 update=0 insert=0 delete=0
gpg:
reset=0 found=3 not=0 cache=0 not=0
gpg: kid_not_found_cache: count=0 peak=0 flushes=0
gpg: sig_cache: total=6 cached=6 good=6 bad=0
gpg: random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
outmix=0 getlvl1=0/0 getlvl2=0/0
gpg: rndjent stat: collector=0x0000000000000000 calls=0 bytes=0
gpg: secmem usage: 0/65536 bytes in 0 blocks
===
<pre>The issue is therefore not with `gnu --verify`, but with the connection
to `log-socket`:
===
can't connect to '<a class="moz-txt-link-freetext" href="socket:///home/user/.gnupg/log-socket">socket:///home/user/.gnupg/log-socket</a>': Connection refused
===
My config hasn't changed but I did upgrade my OS
(Ubuntu 20.04.2). How can I get commands to output to the console?</pre>---
aslamK</pre>
<div class="moz-cite-prefix">On 4/19/25 23:15, C.J. Collier wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJj0OuujbnkhdSd8c_Qe-5j8WQ1pwHv9EwLw+MG123r1py7WTQ@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="auto">I like to do something like:
<div dir="auto"><br>
</div>
<div dir="auto">set -e</div>
<div dir="auto">gpg --verify</div>
<div dir="auto"><br>
</div>
<div dir="auto">Or</div>
<div dir="auto"><br>
</div>
<div dir="auto">gpg --verify || {</div>
<div dir="auto"> echo "onoes ever buddy panik!!!"</div>
<div dir="auto"> exit 1</div>
<div dir="auto">}</div>
<div dir="auto"><br>
</div>
<div dir="auto">Or </div>
<div dir="auto"><br>
</div>
<div dir="auto">gpg --verify && echo "Verified!"</div>
<div dir="auto"><br>
</div>
<div dir="auto">Or</div>
<div dir="auto"><br>
</div>
<div dir="auto">gpg --verify </div>
<div dir="auto">if [[ $? == 0 ]] ; then</div>
<div dir="auto"> echo "yay!"</div>
<div dir="auto">else</div>
<div dir="auto"> echo "nay!"</div>
<div dir="auto">fi</div>
</div>
<br>
<div class="gmail_quote gmail_quote_container">
<div dir="ltr" class="gmail_attr">On Sat, Apr 19, 2025, 19:16
aslamK <<a href="mailto:4slam@mythicflow.com"
moz-do-not-send="true" class="moz-txt-link-freetext">4slam@mythicflow.com</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">This
is what happened when I try to verify a signature (the same
message <br>
appears when I do `gpg --dearmor`):<br>
<br>
```<br>
$ gpg --verify
syncthingtray-1.7.6-x86_64-pc-linux-gnu.tar.xz.sig<br>
can't connect to '<a class="moz-txt-link-freetext" href="socket:///home/user/.gnupg/log-socket">socket:///home/user/.gnupg/log-socket</a>':
Connection refused<br>
```<br>
<br>
There is no other output. I am able to see the log using
KWatchGnuPG <br>
(via Kleopatra). With the log thus open, the `gpg --verify`
command does <br>
not report the error but it also does not any other output.<br>
<br>
I do have the public key used for the signature and it has not
expired.<br>
<br>
Here's what the command shows with the verbose option, while
the log is <br>
open in KWatchGnuPG. It doesn't report whether the
verification succeeded.<br>
<br>
```<br>
$ gpg -vv --verify
syncthingtray-1.7.6-x86_64-pc-linux-gnu.tar.xz.sig <br>
syncthingtray-1.7.6-x86_64-pc-linux-gnu.tar.xz<br>
# off=0 ctb=89 tag=2 hlen=3 plen=307<br>
:signature packet: algo 1, keyid E06FE8F53CDC6A4C<br>
version 4, created 1745078192, md5len 0, sigclass
0x00<br>
digest algo 8, begin of digest 4c 82<br>
hashed subpkt 33 len 21 (issuer fpr v4 <br>
B9E36A7275FC61B464B67907E06FE8F53CDC6A4C)<br>
hashed subpkt 2 len 4 (sig created 2025-04-19)<br>
subpkt 16 len 8 (issuer key ID E06FE8F53CDC6A4C)<br>
data: [2047 bits]<br>
```<br>
<br>
Shouldn't the result of `gpg --verify` be an explicit
affirmative or <br>
negative?<br>
<br>
-- <br>
aslamK<br>
<br>
<br>
<br>
_______________________________________________<br>
Gnupg-users mailing list<br>
<a href="mailto:Gnupg-users@gnupg.org" target="_blank"
rel="noreferrer" moz-do-not-send="true"
class="moz-txt-link-freetext">Gnupg-users@gnupg.org</a><br>
<a href="https://lists.gnupg.org/mailman/listinfo/gnupg-users"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true" class="moz-txt-link-freetext">https://lists.gnupg.org/mailman/listinfo/gnupg-users</a><br>
</blockquote>
</div>
</blockquote>
</body>
</html>