#1032366 bts --smtp-host=reportbug.d.o fails with "certificate verify failed"

Package:
devscripts
Source:
devscripts
Description:
scripts to make the life of a Debian Package maintainer easier
Submitter:
Gioele Barabucci
Date:
2023-04-22 07:21:03 UTC
Severity:
normal
#1032366#5
Date:
2023-03-05 08:01:22 UTC
From:
To:
bts is currently unable to file bug reports via reportbug.debian.org:

$ bts --smtp-host=reportbug.debian.org retitle 1234 "foobar"
bts: failed to open SMTP connection to reportbug.debian.org
(SSL connect attempt failed error:0A000086:SSL routines::certificate
verify failed)

According #debian-devel, this is probably caused by a combination of the
TLS configuration of reportbug.d.o and bug #1029588 [1].

[1] https://bugs.debian.org/1029588

Regards,

#1032366#10
Date:
2023-04-22 07:12:16 UTC
From:
To:
A workaround suggested by Unit193 on #debian-devel is reverting

https://github.com/noxxi/p5-io-socket-ssl/commit/c0a063b70f0a#diff-d1cdb9f512f51b16007345ca2037a640735689038dd631b9c79cd8d953334309

i.e. removing the branch

     } elsif ( ! $vcn_scheme && $host =~m{^[\d.]+$|:} ) {
       # don't try to verify IP by default
       return $ok;

from IO/Socket/SSL.pm