• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

Resolved Curl not working

Anoop

Regular Pleskian
hosted some files on plesk server and cannot download it on other linux servers using curl command.
 
Try to run the cURL command on your linux servers' shell but without the silent flag and with additional output:
curl -Lv https://domain.tld/filename.txt
Then you'll see what happens and you'll get the HTTP headers + response code aswell
 
Try to run the cURL command on your linux servers' shell but without the silent flag and with additional output:
curl -Lv https://domain.tld/filename.txt
Then you'll see what happens and you'll get the HTTP headers + response code aswell
Found the error. SSL Error


Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* Server certificate:
* subject: E=[email protected],CN=Plesk,O=Plesk,L=Schaffhausen,C=CH
* start date: Jun 19 20:27:17 2020 GMT
* expire date: Jun 19 20:27:17 2021 GMT
* common name: Plesk
* issuer: E=[email protected],CN=Plesk,O=Plesk,L=Schaffhausen,C=CH
* NSS error -8181 (SEC_ERROR_EXPIRED_CERTIFICATE)
* Peer's Certificate has expired.
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
* Closing connection 0
curl: (60) Peer's Certificate has expired.
More details here: curl - SSL CA Certificates

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.
 
So the URL you're calling has an invalid SSL certificate. So either install a valid SSL certificate on that domain (assuming you have control over it) or use the -k flag with cURL (not recommended)
 
So the URL you're calling has an invalid SSL certificate. So either install a valid SSL certificate on that domain (assuming you have control over it) or use the -k flag with cURL (not recommended)
Reinstalled SSL and solved the issue.
 
Back
Top