Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^4: HSTS policy breaks cpan utility on Windows

by Don Coyote (Hermit)
on Nov 21, 2019 at 15:22 UTC ( [id://11108988]=note: print w/replies, xml ) Need Help??


in reply to Re^3: HSTS policy breaks cpan utility on Windows
in thread HSTS policy breaks cpan utility on Windows

Default to the secure option is fair.

  • Comment on Re^4: HSTS policy breaks cpan utility on Windows

Replies are listed 'Best First'.
Re^5: HSTS policy breaks cpan utility on Windows
by syphilis (Archbishop) on Nov 22, 2019 at 01:34 UTC
    Default to the secure option is fair

    But the case here is that the "secure option" is being enforced.
    If I want to download www.cpan.org/authors/01mailrc.txt.gz, I'm forced to do it securely.
    A fresh build of perl (from source) has no capability (AFAICS) to perform such a secure download.
    Therefore the cpan utility is initially reliant on some external utility that is capable of a secure download - and there's no guarantee that such an "external utility" exists.
    If no such external utility is available to cpan, then cpan is unusable on a fresh build of perl, no matter how you configure it.
    That's a rather annoying situation to be in - especially if, as Anonymous Monk asserts elsewhere in this thread, it's a situation created by the cpan.org webserver.

    Cheers,
    Rob

      Yes, Core should include SSL capabilities from the start.

      perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'
        Yes, Core should include SSL capabilities from the start

        This would mean that perl would be dependent upon the SSL library on which the SSL-compatible CORE relies - either that, or the perl source has to include its own portable SSL code.
        I've had enough trouble with OpenSSL (and other libraries) in the past to be sympathetic to the view that perl should remain independent of all third party libraries, and I wouldn't like to burden the perl developers with the task of incorporating portable SSL code into the perl source.

        Cheers,
        Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11108988]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (7)
As of 2024-04-24 10:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found