Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
3
Erster Beitrag:
vor 4 Jahren, 5 Monaten
Letzter Beitrag:
vor 4 Jahren, 5 Monaten
Beteiligte Autoren:
Peter Holemans, GuenterP

[WD18] FTPS - Certificat error

Startbeitrag von Peter Holemans am 28.10.2013 15:33

Hi all,

We've set up an FTPS site in our DMZ to talk with an external party.
The FTPS IIS site, is set up with explicit security and works fine using logon authentication when using FileZilla (which will install the certificate by itself).

However, when trying out of WD using code I Always get the error 'Le certificat distant ne peut être authentifié.' or 'The remote certificate could not be authenticated.'...

This is the code base:

//We ignore certificate issues
FTP.IgnoreError = FTPIgnoreExpiredCertificate+FTPIgnoreInvalidCertificate+FTPIgnoreInvalidCertificateName+FTPIgnoreRévocation
FTPConnection = FTPConnect(MyApplication::FTPServer,MyApplication::FTPUser,MyApplication::FTPPassword,MyApplication::FTPPort,False,90)
IF FTPConnection >= 0 THEN
IF NOT MyApplication::FTPPutFileLocation ~= "" THEN
IF FTPCurrentDir(FTPConnection,MyApplication::FTPPutFileLocation) = "" THEN
//Disconnect
FTPDisconnect(FTPConnection)
//Write Error
ReturnResult = 0
...
MyApplication::WriteToLogFile("FTP EXCEPTION",RETURN_JDEKyriba_WriteARAPForecastFile_ErrorText+CR, ErrorInfo(errFullDetails))
END
END
IF FTPSend
(FTPConnection,pTargetPathAndFile,"/"+fExtractPath(pTargetPathAndFile,fFileName+fExtension)) THEN
//Disconnect
FTPDisconnect(FTPConnection)
//Return OK
ReturnResult = 1
ELSE
//Disconnect
FTPDisconnect(FTPConnection)
//Write Error
ReturnResult = 0
...
MyApplication::WriteToLogFile("FTP EXCEPTION",RETURN_JDEKyriba_WriteARAPForecastFile_ErrorText+CR, ErrorInfo(errFullDetails))
END
ELSE
//Write Error
ReturnResult = 0
...
MyApplication::WriteToLogFile("FTP EXCEPTION",RETURN_JDEKyriba_WriteARAPForecastFile_ErrorText+CR, ErrorInfo(errFullDetails))
END


Anybody an idea what I might be doing wrong, or what I need to do/install additionally?

Thanks in advance,

Peter H.

Antworten:

Anybody?

Tia, Peter H.

von Peter Holemans - am 29.10.2013 08:14
Hi Peter,

with WinDev 18, I'm using

FTP.IgnoreError = FTPIgnoreInvalidCertificate + FTPIgnoreExpiredCertificate + FTPIgnoreInvalidCertificateName + FTPIgnoreRevocation

and it works just fine with an FTPS site, which connects via
[attachment 703 Ashampoo_Snap_2013.10.29_16h49m01s_001_.png]

I'm using WINSCP to test the connection, the shown window is a WINSCP-window

http://winscp.net/eng/docs/lang:de

von GuenterP - am 29.10.2013 15:53
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.