This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Update SSL CA-Bundle?

Hello,

I was wondering if it is possible to update the builtin CA bundle as I am having troubles connecting to a HTTPS site via curl or Perl LWP::UserAgent.

loginuser@firewall:/home/login > curl https://www.cloudflare.com/api_json.html
curl: (60) SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
More details here: cURL - Details on Server SSL Certificates

If I try to connect with perl using LWP::UserAgent….

oginuser@firewall:/home/login/scripts > perl dyndns_cloudflare.pl 
$VAR1 = \'Can\'t connect to Home | CloudFlare | The web performance & security company (Network is unreachable)

LWP:[:P]rotocol::https::Socket: connect: Network is unreachable at /usr/local/ap510/site/lib/LWP/Protocol/http.pm line 51.
';

I went to the https://www.cloudflare.com site and downloaded the certificate 
"Certificate Authority Information Access" CRT file.  I then converted it to a PEM
file with:

openssl x509 -inform DES -in g***tendvalg2.crt  -out outcert.pem -text

I then copied it into the location where I *think* you store the CA bundle:

cp outcert.pem /var/pattern/cadata/ca/GlobalSign_Extended_Validation_CA_-_G2.pem

But, unfortunately this did not help. I wonder if I need to c_rehash or something?

Any assistance greatly appreciated.

Thanks,
Jacko


This thread was automatically locked due to age.
  • Hi, Jacko, and welcome to the User BB!

    If you want to import a new CA and cert, you should upload a PKCS#12 in Certificate Management in WebAdmin.

    Having said that, I wonder if all you need with curl is to use -k.

    Cheers - Bob