in reply to Re: Mechanize - Bad File descriptor
in thread Mechanize - Bad File descriptor

Correct. The webserver must deliver the complete certificate chain up to (but excluding) the root certificate. Depending on your server, you will also have to be sure to provide the chain in the correct order.

Popular browsers do try to download (or cache) intermediate certs. But from what i remember from the protocol specs, i think that strictly speaking they are not supposed to do that. Pretty sure that the behaviour of Perl and Curl is the correct one.

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
Also check out my sisters artwork and my weekly webcomics

Replies are listed 'Best First'.
Re^3: Mechanize - Bad File descriptor
by etj (Priest) on Sep 10, 2024 at 11:45 UTC
    The Perl code's reliance on protocol behaviour may be correct, but failing to catch it in a more coherent/comprehensible way than "bad file descriptor" can hardly be called correct.

      Agreed. However, choroba received the correct error message when running the same code. I have just tested and I also receive the correct error:

      $ perl 11161659.pl Error GETing https://contests.arrl.org/: Can't connect to contests.arr +l.org:443 (certificate verify failed) at 11161659.pl line 12.

      Can anyone reproduce what Marshall has reported?


      🦛