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":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.