Kodi Community Forum
SSL and TLS support in XBMC's FTP client (libcurl / curl) for FTPS - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Feature Requests (https://forum.kodi.tv/forumdisplay.php?fid=9)
+--- Thread: SSL and TLS support in XBMC's FTP client (libcurl / curl) for FTPS (/showthread.php?tid=20721)

Pages: 1 2 3 4 5


SSL and TLS support in XBMC's FTP client (libcurl / curl) for FTPS - except10n - 2006-06-28

hello

i need support for ftps and since the ftp client was recently modified to use libcurl i thought i'd take a shot. the included libcurl.dll is the nonssl one. i replaced it with the dll from the win32 ssl package and made the following changes to "c:\xbmc\xbmc\filesystem\filecurl.cpp" method setcommonoptions()...

g_curlinterface.easy_setopt(m_easyhandle, curlopt_ftp_ssl, curlftpssl_try);
g_curlinterface.easy_setopt(m_easyhandle, curlopt_ftpsslauth, curlftpauth_tls);
g_curlinterface.easy_setopt(m_easyhandle, curlopt_ssl_verifypeer, 0);
g_curlinterface.easy_setopt(m_easyhandle, curlopt_ssl_verifyhost, 0);

i then tried to connect to a tls ftp site and got several unresolved errors. i added libeay32.dll and libssl32.dll since apparently the openssl libs aren't statically linked into libcurl.dll. after trying again i was presented with many other unresolved symbols asking for dll files such as mscvrt.dll, ntdll.dll, etc.
a tcpdump showed however that the auth tls command was issued so it is on the right track.

i looked around for a libcurl.dll that had openssl statically linked but couldn't find any. i was also having many problems trying to compile libcurl from source myself.

does anyone have any advice on how to get libcurl with ssl supported?

-except10n


- ultrabrutal - 2006-11-05

any progress on getting ssl support into xbmc?


- spiff - 2006-11-05

no. none of the devs have any interest


- elupus - 2006-11-05

there is another lib that has less dependencies wich is also supported by curl, yassl. anybody that wan't this should probably have a look at building a curl with that instead.


PRET and maybe SSL on the built-in FTP Client - Skindred - 2007-01-23

As the Title says; Those would be really neat features for meLaugh
Maybe someone can fix those into XBMC.
Would surely make it alot more usable for me ^^
But ONLY do this if there is enough interest in it, coz it would be pointless to devote time to this, when only I can benefit from it Tongue

Keep on rockin' folks Wink
I have been following XBMC (P) ever since I softmodded my xbox as a lil' kid (aged 13) just a few days after the 4th of July 2003 (what a great time that was for XBOX Big Grin)


- Skindred - 2007-01-25

Can someone explain me a lil' more about the ftp client?
Coz maybe I'll look into it and mod it myself a bit.


SSL FTP Client. - realjobe - 2007-09-13

Hi there.

Will it be possible to rich the current FTP client solution so that the SSL required FTP connections can be accessed also?

At the moment User can add to sources.xml file
<boormark>
<name>FTP site</name>
<path>FTP://user: pass@site: port</path>
</boormark>

Dealing with SSL capable FTP sites could be given as
<boormark>
<name>Secure FTP site</name>
<path>SFTP://user: pass@site: port</path>
</boormark>
?

Possible? Certificate should be then save to somewhere? UserData folder?
Smile


- elupus - 2007-09-13

actually current curl has ssl support, just not tested and may be very incomplete. i know it works for https thou.


- realjobe - 2007-09-13

I have SSL FTP server running.. where Can I test?


- elupus - 2007-09-14

just enter a ftps:// instead of ftp for the share.


- realjobe - 2007-09-14

elupus Wrote:just enter a ftps:// instead of ftp for the share.

EXCELENT, I'll give this a Try right after hard day of work today. Smile
I'll raport result here.


- realjobe - 2007-09-14

Hi there.
I conducted my technical testing for Secure FTP but I was not able to connect to my G6 SSL FTP server. Log does not show anything.

Here is the findings.
Build rev10193.

<source>
<name>FTPS Test</name>
<path>ftps://user: [email protected]: 990/</path>
</source>

Log goes after going to FileManager and Clicking the link.

16:32:36 M: 42078208 DEBUG: CApplication::OnMessage : To ActivateWindow(MyFiles)
16:32:36 M: 42078208 DEBUG: Activating window ID: 10003
16:32:36 M: 42078208 DEBUG: Checking if window ID 10003 is locked.
16:32:36 M: 45711360 INFO: Attempting to default to:
16:32:36 M: 45711360 INFO: Loading skin file: FileManager.xml
16:32:36 M: 45666304 INFO: Loading skin file: DialogProgress.xml
16:32:38 M: 43180032 DEBUG: CApplication::OnKey: 256 pressed, action is 7
16:32:38 M: 43167744 INFO: Loading skin file: DialogOK.xml
16:32:39 M: 42778624 ERROR: Unable to wait for NTP reply from the SNTP server, GetLastError returns 10060


All I get is "Unable to connect" and there is nothing on the Server's log.



With FlashFXP I must tell the Client to use "Auth SSL"


- spiff - 2007-09-14

eeeeh.

ftp with auth ssl != ftps

make up your mind on what you are requesting first. ktxh


- Gamester17 - 2007-09-14

realjobe Wrote:<source>
<name>FTPS Test</name>
<path>ftps://user: [email protected]: 990/</path>
</source>
I do not know if FTPS is supported in XBMC but even if it was I do not think it would work with spaces like that in the URL(?)

if FTPS was supported then it should be:
Code:
<source>
  <name>FTPS Test</name>
  <path>ftps://user:[email protected]:990/</path>
</source>



- elupus - 2007-09-14

was my bad, i thought it was the same. is ftps the one with ssh?