Username (e.g. epiz_XXX) or Website URL
epiz_33357877
Error Message
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
Other Information
First, let me start by saying super thank you for providing this wonderful hosting facility for us plebs
So the usual/recommended FTP transfer method using FileZilla works perfectly for me. Even the curl transfer works but only as long as I’m using the plain ftp and not “ftp secure” route (SSL over TLS). While trying to use the secure version, I’m getting below error:
>curl --ftp-ssl --cacert /path/to/cacert.pem -u epiz_33357877:<password> -T test.txt ftp://ftpupload.net/htdocs/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
I’ve tried using the latest CA certificate from the curl website as described in this stackoverflow link but I’m still getting this same error. I’ve also tried both --ssl
and ftp-ssl
switches with the same result.
Finally, I also tried the “ftps” protocol instead of plain “ftp” on port 21. This time, I got the “wrong version number” error like this:
>curl --ftp-ssl --cacert /path/to/cacert.pem -u epiz_33357877:<password> -T test.txt ftps://ftpupload.net:21/htdocs/
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (35) error:1408F10B:SSL routines:ssl3_get_record:wrong version number
The FileZilla method works perfectly, but I’m trying to automate my build and deployment tooling so that for every few PHP file uploads, I don’t have to open FileZilla but be able to run this command in a batch script or something. Can you suggest something to get rid of this error?