Raised This Month: $51 Target: $400
 12% 

[ANY] tEasyFTP v0.0.2 (2011-12-29)


Post New Thread Reply   
 
Thread Tools Display Modes
Spirit_12
Veteran Member
Join Date: Dec 2012
Location: Toronto, CA
Old 01-28-2017 , 00:27   Re: [ANY] tEasyFTP v0.0.2 (2011-12-29)
Reply With Quote #51

Did it stop working? Can you provide error logs?
__________________
Spirit_12 is offline
Ejziponken
AlliedModders Donor
Join Date: Apr 2008
Old 01-28-2017 , 06:48   Re: [ANY] tEasyFTP v0.0.2 (2011-12-29)
Reply With Quote #52

No the problem was that in the sp it says "curl" when it should be "cURL", otherwise it wont compile.
Ejziponken is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 02-20-2017 , 23:17   Re: [ANY] tEasyFTP v0.0.2 (2011-12-29)
Reply With Quote #53

Quote:
Originally Posted by Spirit_12 View Post
Did it stop working? Can you provide error logs?
I'm having issues as well. I tried using the default binary, and now I'm using the peace-maker branch and uploading from a VDS to my website.

Spoiler

Note: Port is 22 because it is sFTP. If I use port 21 and change target to:
Spoiler

I've tried with raydans as well as bara's curl ext versions. Any ideas on what it could be? Google-ing the above error suggests installation of specific components to the root installs for the website, or edits to php.ini, both of which I dont see my web host doing...Perhaps it is something on the plugins side or how I have it set up?
__________________
ThatOneGuy is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 02-21-2017 , 05:19   Re: [ANY] tEasyFTP v0.0.2 (2011-12-29)
Reply With Quote #54

I don't think this supports sftp. You might have to add some other curl options to ignore the certificates on starttls or ssl ftp.

PHP Code:
curl_easy_setopt_int(hCurlCURLOPT_SSL_VERIFYHOST0);
curl_easy_setopt_int(hCurlCURLOPT_SSL_VERIFYPEER0); 
__________________
Peace-Maker is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 02-21-2017 , 20:38   Re: [ANY] tEasyFTP v0.0.2 (2011-12-29)
Reply With Quote #55

Quote:
Originally Posted by Peace-Maker View Post
I don't think this supports sftp. You might have to add some other curl options to ignore the certificates on starttls or ssl ftp.

PHP Code:
curl_easy_setopt_int(hCurlCURLOPT_SSL_VERIFYHOST0);
curl_easy_setopt_int(hCurlCURLOPT_SSL_VERIFYPEER0); 
I saw a few posts suggest the this as well, and began to look into it, but saw that it poses some security threats and avoided it in hopes that there is a better solution. If nothing else works though, I may take this route. I tried port 21 with FTP as well (I use either, as noted in the post, depending on what I need to see folder-level-wise).

The alternate solution I was considering was to have the website connect to the server instead and download the file. In the past, I've done this after the user selected the download they want, then they would have to wait a second (or ten rather) while the web page downloads the file from the server. However, a better solution I thought of last night is to instead use curl to open a web page each time a new demo file is available, which would trigger the web server to download/upload the file. I think I may go this route.
__________________

Last edited by ThatOneGuy; 02-21-2017 at 20:41.
ThatOneGuy is offline
beetlejuice
Member
Join Date: Oct 2016
Old 02-22-2017 , 06:40   Re: [ANY] tEasyFTP v0.0.2 (2011-12-29)
Reply With Quote #56

I have difficulty making this work...
Lost couple of hours on it with no luck.

errors:

....(Peer certificate cannot be authenticated with given CA certificates).

OR

....(Timeout was reached).

[SAME ERRORS AS POST #53]

These 2 errors depend of ftp or sftp connection method.

I understand this doesnt work with nfoservers? Can someone give me working example of setup of this for nfo?

I need this working asap and will donate for a fix or alternative working solution solution (cURL?)

Last edited by beetlejuice; 02-22-2017 at 06:41.
beetlejuice is offline
DarkDeviL
SourceMod Moderator
Join Date: Apr 2012
Old 02-22-2017 , 13:02   Re: [ANY] tEasyFTP v0.0.2 (2011-12-29)
Reply With Quote #57

Quote:
Originally Posted by ThatOneGuy View Post
Setup:
Code:
"RemoteTargets"
{
    "togscrimdemos"
    {
        "host"                    "hosted9.nfoservers.com"
        [...]
Quote:
Originally Posted by ThatOneGuy View Post
I've tried with raydans as well as bara's curl ext versions. Any ideas on what it could be? Google-ing the above error suggests installation of specific components to the root installs for the website, or edits to php.ini, both of which I dont see my web host doing...Perhaps it is something on the plugins side or how I have it set up?
Code:
Peer certificate cannot be authenticated with given CA certificates
hosted9.nfoservers.com uses Self Signed SSL certificates, that aren't trusted by a valid Certificate Authority (CA).

Also the self-signed certificate on hosted9.nfoservers.com expired in February 2011.

Quote:
Originally Posted by Peace-Maker View Post
I don't think this supports sftp. You might have to add some other curl options to ignore the certificates on starttls or ssl ftp.

PHP Code:
curl_easy_setopt_int(hCurlCURLOPT_SSL_VERIFYHOST0);
curl_easy_setopt_int(hCurlCURLOPT_SSL_VERIFYPEER0); 
Stuff like this is required, at least NFO and others using self-signed / expired certificates.

Quote:
Originally Posted by ThatOneGuy View Post
I saw a few posts suggest the this as well, and began to look into it, but saw that it poses some security threats and avoided it in hopes that there is a better solution. If nothing else works though, I may take this route. I tried port 21 with FTP as well (I use either, as noted in the post, depending on what I need to see folder-level-wise).

The alternate solution I was considering was to have the website connect to the server instead and download the file. In the past, I've done this after the user selected the download they want, then they would have to wait a second (or ten rather) while the web page downloads the file from the server. However, a better solution I thought of last night is to instead use curl to open a web page each time a new demo file is available, which would trigger the web server to download/upload the file. I think I may go this route.
The error is on NFO's side, not yours.

Unless they are willing to fix it from their end, you're screwed (without turning off certificate validation with the options above).


Quote:
Originally Posted by beetlejuice View Post
errors:

....(Peer certificate cannot be authenticated with given CA certificates).
Read above.

Quote:
Originally Posted by beetlejuice View Post
OR

....(Timeout was reached).
Timeout can be a lot of things such as network connectivity issues, a firewall on the other end blocking the port, ... etc.


Quote:
Originally Posted by ThatOneGuy View Post
Note: Port is 22 because it is sFTP. If I use port 21 and change target to:
Quote:
Originally Posted by beetlejuice View Post
These 2 errors depend of ftp or sftp connection method.
SFTP and FTPS are two different things!

SFTP is "FTP over SSH", where FTPS is FTP with SSL.

There seem to be no SSH stuff in this one, you can do FTPS with this one, not SFTP.
__________________
Mostly known as "DarkDeviL".

Dropbox FastDL: Public folder will no longer work after March 15, 2017!
For more info, see the [SRCDS Thread], or the [HLDS Thread].

Last edited by DarkDeviL; 02-22-2017 at 13:05.
DarkDeviL is offline
beetlejuice
Member
Join Date: Oct 2016
Old 02-22-2017 , 20:31   Re: [ANY] tEasyFTP v0.0.2 (2011-12-29)
Reply With Quote #58

Hi arne,

I understand everything you explained and followed through on most of it...

but where do i put these?
curl_easy_setopt_int(hCurl, CURLOPT_SSL_VERIFYHOST, 0);
curl_easy_setopt_int(hCurl, CURLOPT_SSL_VERIFYPEER, 0);

In tEasyFTP.sp?
Can someone provide me with proper way of adding it to .sp please.

I will contact nfo about this to see if there is anything that can be done on their side.
Thank you very much for explaining it.
beetlejuice is offline
beetlejuice
Member
Join Date: Oct 2016
Old 02-25-2017 , 02:05   Re: [ANY] tEasyFTP v0.0.2 (2011-12-29)
Reply With Quote #59

just tried this: https://byet.host/

free ftp hosting. So it is not only nfo i guess....

again:
(Peer certificate cannot be authenticated with known CA certificates).

Does anyone know host that accepts this plugin?
Also anyone up to edit tEasyFTP.sp properly and add those lines ^ post above in to make curl ignore this?

I would really appreciate!

Thx

Last edited by beetlejuice; 02-25-2017 at 02:05.
beetlejuice is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 02-25-2017 , 13:45   Re: [ANY] tEasyFTP v0.0.2 (2011-12-29)
Reply With Quote #60

Quote:
Originally Posted by arne1288 View Post
Code:
Peer certificate cannot be authenticated with given CA certificates
hosted9.nfoservers.com uses Self Signed SSL certificates, that aren't trusted by a valid Certificate Authority (CA).

Also the self-signed certificate on hosted9.nfoservers.com expired in February 2011.

Stuff like this is required, at least NFO and others using self-signed / expired certificates.

The error is on NFO's side, not yours.

Unless they are willing to fix it from their end, you're screwed (without turning off certificate validation with the options above).
I've submitted a support ticket to NFO on the issue in hopes they will look into it, as that may affect a quite a number of users. Thanks for the information. If they are unwilling to update their certificates, I will have to go the alternate route of disabling the verification.
__________________
ThatOneGuy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode