Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??

Hello monks

I am trying to install perlbrew on Linux machine

[user@host ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.8 (Santiago)
When I try using curl or wget, I continue to get certificate error:
[user@host ~]$ curl -L https://install.perlbrew.pl | bash curl: (60) Peer certificate cannot be authenticated with known CA cert +ificates More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle +" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.
I tried with -k option as well but that also fails:
[user@host ~]$ curl -kL https://install.perlbrew.pl | bash % Total % Received % Xferd Average Speed Time Time Time + Current Dload Upload Total Spent Left + Speed 103 1548 103 1548 0 0 1335 0 0:00:01 0:00:01 --:--: +-- 1335 ## Download the latest perlbrew curl: (60) Peer certificate cannot be authenticated with known CA cert +ificates More details here: http://curl.haxx.se/docs/sslcerts.html curl performs SSL certificate verification by default, using a "bundle +" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.
Using wget throws following error:
[user@host ~]$ wget -O - https://install.perlbrew.pl | bash --2019-03-06 10:58:43-- https://install.perlbrew.pl/ Resolving install.perlbrew.pl... 64.62.231.202 Connecting to install.perlbrew.pl|64.62.231.202|:443... connected. ERROR: cannot verify install.perlbrew.pl’s certificate, issued by “/DC +=com/DC=<my_domain>/DC=<my_domain>/CN=<my_domain> Enterprise Root CA” +: Self-signed certificate encountered. To connect to install.perlbrew.pl insecurely, use ‘--no-check-certific +ate’.
Using ‘--no-check-certificate’ option also gives the same error as above.

Could this be a firewall issue (I am behind a corporate firewall) or SSL certificate issue as error says?

Trying to find if someone faced this and know how to get around it.

UPDATE: Marked subject as SOLVED.


In reply to [SOLVED]: perlbrew/curl: curl: (60) Peer certificate cannot be authenticated with known CA certificates by Perl300

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2022-12-04 21:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?