notes on Mojolicious installation error

[root@localhost ~]# curl -L https://cpanmin.us | perl – -M https://cpan.metacpan.org -n Mojolicious

curl: (35) SSL connect error

Turn on verbose mode and find out the details of the error:

[root@localhost ~]# curl -L -v https://cpanmin.us | perl – -M https://cpan.metacpan.org -n Mojolicious
* About to connect() to cpanmin.us port 443 (#0)
* Trying 104.28.28.17… connected
* Connected to cpanmin.us (104.28.28.17) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* NSS error -12286
* Closing connection #0
* SSL connect error

curl: (35) SSL connect error

So it is “NSS error -12286”
Check here what is means: http://www-archive.mozilla.org/projects/security/pki/nss/ref/ssl/sslerr.html
“Cannot communicate securely with peer: no common encryption algorithm(s).”

The local and remote systems share no cipher suites in common. This can be due to a misconfiguration at either end. It can be due to a server being misconfigured to use a non-RSA certificate with the RSA key exchange algorithm.

this turns out that our curl and nss is too old. we abandoned installation this way, instead, we tried to use CPAN to install.

$perl -MCPAN -e shell
cpan $ install Mojolicious

Leave a Reply

Your email address will not be published. Required fields are marked *

twenty − 16 =