Web Connection
TLS 1.2
Gravatar is a globally recognized avatar based on your email address. TLS 1.2
  Brian Roberts
  All
  Aug 19, 2017 @ 01:00pm

I wrote a Visual FoxPro 8.0 and 9.0 program that allows the user to transmit html files to a server. The hosting company moved from TLS 1.0 to 1.2 and now the connection isn't working. I'm using FTPConnect() to make the connection and FtpsendFileEx in wwipstuff to transmit the files. I downloaded the new version of Web Connections 6.15, but that was no help. Would the issue be in FoxPro or is there some place in the Web Connections I can set a parameter for TLS 1.2?

Gravatar is a globally recognized avatar based on your email address. re: TLS 1.2
  Rick Strahl
  Brian Roberts
  Aug 19, 2017 @ 03:15pm

Hi Brian,

What are you using exactly? FTP or HTTP? wwFTP has never supported SSL, so I'm pretty sure you either didn't connect via FTPS/SFTP or you it never worked in the first place.

The HTTP client uses WinInet and it will use whatever is installed on your Windows version. if you're running Windows XP you might be out of luck but any newer version should support TLS 1.2 for HTTP.

+++ Rick ---

Gravatar is a globally recognized avatar based on your email address. re: TLS 1.2
  Brian Roberts
  Brian Roberts
  Aug 19, 2017 @ 04:17pm

Sorry for the confusion. I am using the Client Tools. I posted on the wrong board but the rest of the post is correct. My head was probably somewhere it didn't belong.

Gravatar is a globally recognized avatar based on your email address. re: TLS 1.2
  Brian Roberts
  Brian Roberts
  Aug 19, 2017 @ 04:32pm

I am running on Windows 10 as are most of my clients. The code I wrote worked fine up until 2 days ago when the hosted server was loaded with TLS 1.2

Here is a bit of code I am running:

********create ftp connection ************************************ SET CLASSLIB TO "WWIPSTUFF" PUBLIC o o=CREATE("myFTP") WAIT WINDOW NOWAIT "Alt-x to abort transfer..." ON KEY LABEL ALT-X o.lCancelDownload = .T. LOG IN wait window "Connecting to Iowa Website...please wait!" timeout 3 IF o.FTPConnect("www.rodeoprogram.com","broberts53","u2fer1953") # 0 =MESSAGEBOX("CONNECT ERROR "+ALLT(STR(o.nError))+"... "+CHR(13)+o.cError,0,"Problem!") RETURN ENDIF close acecomputer store here WAIT WIND "Beginning process to update Website data..." timeout 2


*PROCESS OF PUTTING THE NEW CALENDAR


IF not USED('namefile') USE namefile IN 0 ENDIF SELECT namefile GO top DO while not EOF() xx = '"' + ALLTRIM(namefile.fname) + '","' + "iaresults/" + ALLTRIM(namefile.fname) + '"' IF o.FtpsendFileEx(&xx) # 0 =MESSAGEBOX("FILE TRANSFER (SEND) ERROR "+ALLT(STR( o.nError))+"... "+CHR(13)+o.cErrorMsg,0,"Problem!") RETURN ELSE WAIT window "TRANSFER OF FILE "+ALLT(namefile.fname)+"... " timeout 1 ENDIF SELECT namefile SKIP 1 enddo ******************procs for inet stuff o.FTPClose() CLOSE data all WAIT WIND "Iowa Website Closed" TIMEOUT 2 ON KEY LABEL ALT-X WAIT WIND "Iowa RESULTS DATA HAS BEEN UPDATED..." TIMEOUT 3 *thisform.rodeos thisform.release

Gravatar is a globally recognized avatar based on your email address. re: TLS 1.2
  Brian Roberts
  Brian Roberts
  Aug 19, 2017 @ 06:48pm

Well, I solved part of the problem. 2 days ago they moved the site to another server and I had to change my ftp password (nice of them to let me know...not). With that corrected, I am now receiving a transfer send error 12111, so I still think I am having an issue with TLS 1.2 but not sure how to resolve it using the client tools. Does the client tools work with TLS 1.2?

Gravatar is a globally recognized avatar based on your email address. re: TLS 1.2
  Rick Strahl
  Brian Roberts
  Aug 20, 2017 @ 08:58am

Hi Brian,

Again, if you're using wwFTP you're not using TLS - you're not using a secure connection for your FTP transfers because wwFtp (and WinInet) doesn't support it.

The client tools depend on Windows OS for most connectivity via WinInet, so you need to be using a version of Windows that supports TLS 1.2, which I believe is all but XP and older.

+++ Rick ---

© 1996-2017