Curl showing ssl error but it work fine in all browser

General support questions including new installations
Post Reply
sg-cxrus
Posts: 1
Joined: 2015/04/13 07:52:29

Curl showing ssl error but it work fine in all browser

Post by sg-cxrus » 2015/04/13 09:03:14

Hi guys, i got a website https://securepayments.telemoneyworld.c ... neyv2lobby which working fine in all browser, but when i using curl in CentOS 5, it shows error for verification.

Code: Select all

[user@server ~] # curl https://securepayments.telemoneyworld.com/telemoneyv2lobby
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: 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.
The CentOS version is CentOS release 5.9 (Final)

Thanks for any advice.

aks
Posts: 3073
Joined: 2014/09/20 11:22:14

Re: Curl showing ssl error but it work fine in all browser

Post by aks » 2015/04/13 16:24:51

I think the CA (Entrust Inc in this case) is not in the current CA "bundle" that curl is using - especially since the "L1K" is marked as not before 10/10/14 15:23:17 GMT and you're OS release probably pre-dates this.
Either pass the CA certificate to curl (look in the man page) or tell curl to just accept the certificate (-k I think, check the man page).
As it tells you, have a look at http://curl.haxx.se/docs/sslcerts.html for more info.

User avatar
avij
Retired Moderator
Posts: 3046
Joined: 2010/12/01 19:25:52
Location: Helsinki, Finland
Contact:

Re: Curl showing ssl error but it work fine in all browser

Post by avij » 2015/05/13 16:59:46

Looks like the updates released today fix this particular problem. Try running yum update to update your system.

Post Reply