Closed Bug 1851398 Opened 2 years ago Closed 1 year ago

testserver.pl fails if SSL certificate is self-signed

Categories

(Bugzilla :: Installation & Upgrading, enhancement)

enhancement

Tracking

()

RESOLVED FIXED

People

(Reporter: justdave, Assigned: justdave)

References

Details

Attachments

(2 files, 2 obsolete files)

What it says on the tin. If you have a self-signed certificate (for example, on a testing server), then testserver.pl mysteriously fails, even if your server is otherwise working fine.

Attached patch patch for 5.2 (obsolete) — Splinter Review
  • Shows the error that was returned in the output when a fetch fails, instead of just failing.
  • If the error is a certificate error, output a suggestion to pass the --self-signed flag
  • Adds a --self-signed flag that turns off certificate checks.
Assignee: installation → justdave
Status: NEW → ASSIGNED

originally proposed on chat by me, LGTM

Attached patch patch for 5.2 (obsolete) — Splinter Review

Oops, say needs an argument, even if it's empty.

Attachment #9351389 - Attachment is obsolete: true
Attachment #9351390 - Flags: review?(dylan)
Attachment #9351390 - Attachment is obsolete: true
Attachment #9351390 - Flags: review?(dylan)

Isn't this a duplicate of bug 662161, which has been commited in 5.1.x ?

(In reply to Frédéric Buclin from comment #6)

Isn't this a duplicate of bug 662161, which has been commited in 5.1.x ?

No, that actually seems to be fixing a different problem... which should also be fixed here probably.

That one is fixing a problem where it won't work with https at all. This one is fixing where it knows https but doesn't like the certificate.

And it seems you can't run into bug 662161's situation on Ubuntu if using packaged Perl modules as the LWP package for Ubuntu requires LWP::Protocol::https as a dependency for LWP.

But RHEL/CentOS does not.

I pulled in the check for LWP::Protocol::https from bug 662161 as requested in the bugzilla bug for this on both PRs, needs a re-review (requested on GH)

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: