The site has an SSL certificate installed, the browser sees and supports it.

SSL certificate

But curl when trying to load an address produces an error:

mcfinley@mcfinley-Lenovo-G570:~$ curl --cert-status https://***.com curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none 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. 

Similarly in PHP:

Suppose I run this code:

 $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://ΠΌΠΎΠΉ-Π΄ΠΎΠΌΠ΅Π½.com"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($ch); if ( $output === FALSE ) { var_dump(curl_error($ch)); } else { var_dump($output); } curl_close($ch); 

The result will be string(63) "SSL certificate problem: unable to get local issuer certificate"

  • Show your code - Arsen
  • curl --cert-status https://Π΄ΠΎΠΌΠ΅Π½-ΠΌΠΎΠ΅Π³ΠΎ-сайта.com - mcfinley
  • Do you make a request via SSH? do you just check the certificate or send some data to this resource? - Arsen
  • Normal get request using curl'a, no data, without SSH. If I ask the question incorrectly, correct me. I just open the terminal, write curl https://Π΄ΠΎΠΌΠ΅Π½-ΠΌΠΎΠ΅Π³ΠΎ-сайта.com and get the message given in the body of the question: curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none More details here: http://curl.haxx.se/docs/sslcerts.html curl: (60) server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none More details here: http://curl.haxx.se/docs/sslcerts.html - mcfinley
  • I find it difficult to help you, because I myself have never tried to run CURL through the terminal (CMD), only through PHP-> curl. Perhaps there are experts)) - Arsen

0