Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: Unable to connect via FTPS

As you have removed the certificate fingerprints from logs, I cannot tell if you are passing in correct values. Certificate fingerprint is not a sensitive information.
CTifer

Unable to connect via FTPS

I started testing out your .Net Assembly today and when trying to upload via FTP, it works great. Once I set .FtpSecure property to FtpSecure.ExplicitSSL and set .SslCertificate to the value supplied by my network engineer, I can no longer connect.

Here's my logs if this helps. I'm guessing it's because it alerts me that it might not be the computer I think it is and I need to click "Y" which I was able to do in the UI. I've also replaced some possibly sensitive information with [REMOVED] so if you need to see this info, I could send you a personal email if that'll help.


[2012-04-30 10:56:57Z] [0008] Executing Assembly: WinSCP, Version=1.0.0.235, Culture=neutral, PublicKeyToken=b5f19f5762436b89; Path: [REMOVED]/WinSCP.DLL; Location: C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\Temporary ASP.NET Files\root\6e4c7874\1b455f66\assembly\dl3\3cd0ba61\00045e42_4af7cc01\WinSCP.dll; Product: 5.0.6.0
[2012-04-30 10:56:57Z] [0008] Entry Assembly:
[2012-04-30 10:56:57Z] [0008] Operating system: Microsoft Windows NT 5.1.2600 Service Pack 3
[2012-04-30 10:56:57Z] [0008] User: ASPNET@1401-DEVWEB05@1401-DEVWEB05; Interactive: False
[2012-04-30 10:56:57Z] [0008] Runtime: 4.0.30319.261
[2012-04-30 10:56:57Z] [0008] Console encoding: Input: OEM United States (437); Output: OEM United States (437)
[2012-04-30 10:56:57Z] [0008] Session.Open entering
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess..ctor entering
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.GetExecutablePath entering
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.GetExecutablePath leaving
[2012-04-30 10:56:57Z] [0008] EXE executable path resolved to C:\Program Files\WinSCP\WinSCP.exe
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.CheckVersion entering
[2012-04-30 10:56:57Z] [0008] Version of C:\Program Files\WinSCP\WinSCP.exe is 5.0.6.2074, product WinSCP version is 5.0.6.0
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.CheckVersion leaving
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess..ctor leaving
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.Start entering
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.InitializeConsole entering
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.InitializeConsole leaving
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.InitializeChild entering
[2012-04-30 10:56:57Z] [0008] Starting "C:\Program Files\WinSCP\WinSCP.exe" /xmllog="C:\Documents and Settings\1401-DEVWEB05\ASPNET\Local Settings\Temp\tmp3D8.tmp" /xmlgroups /nointeractiveinput /dotnet=506 /ini=nul /console /consoleinstance=_4224_679
[2012-04-30 10:56:57Z] [0007] ExeSessionProcess.ProcessEvents entering
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.InitializeChild leaving
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.Start leaving
[2012-04-30 10:56:57Z] [0008] Command: [option batch on]
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.ExecuteCommand entering
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.ExecuteCommand leaving
[2012-04-30 10:56:57Z] [0008] Command: [option confirm off]
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.ExecuteCommand entering
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.ExecuteCommand leaving
[2012-04-30 10:56:57Z] [0008] Session.SessionOptionsToOpenArguments entering
[2012-04-30 10:56:57Z] [0008] Session.SessionOptionsToOpenSwitches entering
[2012-04-30 10:56:57Z] [0008] Session.SessionOptionsToOpenSwitches leaving
[2012-04-30 10:56:57Z] [0008] Session.SessionOptionsToOpenArguments leaving
[2012-04-30 10:56:57Z] [0008] Command: [open -explicitssl -certificate="[REMOVED]" -passive=1 -timeout=15 "[REMOVED]"]
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.ExecuteCommand entering
[2012-04-30 10:56:57Z] [0008] ExeSessionProcess.ExecuteCommand leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessInitEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessInitEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessInputEvent entering
[2012-04-30 10:56:58Z] [0007] Scheduling output: [winscp> option batch on]
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessInputEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] Scheduling output: [batch on ]
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessInputEvent entering
[2012-04-30 10:56:58Z] [0007] Scheduling output: [winscp> option confirm off]
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessInputEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] Scheduling output: [confirm off ]
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessInputEvent entering
[2012-04-30 10:56:58Z] [0007] Scheduling output: [winscp> open -explicitssl -certificate="[REMOVED]" -passive=1 -timeout=15 "[REMOVED]"]
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessInputEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] Scheduling output: [Connecting to [REMOVED] ...]
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] Scheduling output: [Connected with [REMOVED], negotiating SSL connection...]
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0008] Output: [winscp> option batch on]
[2012-04-30 10:56:58Z] [0008] Output: [batch on ]
[2012-04-30 10:56:58Z] [0008] Output: [winscp> option confirm off]
[2012-04-30 10:56:58Z] [0008] Output: [confirm off ]
[2012-04-30 10:56:58Z] [0008] Output: [winscp> open -explicitssl -certificate="[REMOVED]" -passive=1 -timeout=15 "[REMOVED]"]
[2012-04-30 10:56:58Z] [0008] Output: [Connecting to [REMOVED] ...]
[2012-04-30 10:56:58Z] [0008] Output: [Connected with [REMOVED], negotiating SSL connection...]
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] Scheduling output: [The server's certificate is not known. You have no guarantee that the server is the computer you think it is. Server's certificate details follow:]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [Issuer:]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [- Organization: [REMOVED]]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [- Location: US, Florida, Tampa]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [Subject:]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [- Organization: [REMOVED]]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [- Location: US, Fl, Tampa]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [Valid: 2/24/2012 9:25:18 PM - 1/12/2014 6:48:38 PM]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [Fingerprint (SHA1): [REMOVED]]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [Summary: Unable to get local issuer certificate. The error occured at a depth of 1 in the certificate chain.]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [If you trust this certificate, press Yes. To connect without storing certificate, press No. To abandon the connection press Cancel.]
[2012-04-30 10:56:58Z] [0008] Output: [The server's certificate is not known. You have no guarantee that the server is the computer you think it is. Server's certificate details follow:]
[2012-04-30 10:56:58Z] [0008] Output: [Issuer:]
[2012-04-30 10:56:58Z] [0008] Output: [- Organization: [REMOVED]]
[2012-04-30 10:56:58Z] [0008] Output: [- Location: US, Florida, Tampa]
[2012-04-30 10:56:58Z] [0008] Output: [Subject:]
[2012-04-30 10:56:58Z] [0008] Output: [- Organization: [REMOVED]]
[2012-04-30 10:56:58Z] [0008] Output: [- Location: US, Fl, Tampa]
[2012-04-30 10:56:58Z] [0008] Output: [Valid: 2/24/2012 9:25:18 PM - 1/12/2014 6:48:38 PM]
[2012-04-30 10:56:58Z] [0008] Output: [Fingerprint (SHA1): [REMOVED]]
[2012-04-30 10:56:58Z] [0008] Output: [Summary: Unable to get local issuer certificate. The error occured at a depth of 1 in the certificate chain.]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [Continue connecting and store the certificate?]
[2012-04-30 10:56:58Z] [0008] Output: [If you trust this certificate, press Yes. To connect without storing certificate, press No. To abandon the connection press Cancel.]
[2012-04-30 10:56:58Z] [0008] Output: [Continue connecting and store the certificate?]
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] Scheduling output: [(Y)es, (N)o, C(a)ncel, (C)opy Key: Cancel]
[2012-04-30 10:56:58Z] [0008] Output: [(Y)es, (N)o, C(a)ncel, (C)opy Key: Cancel]
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] Scheduling output: [Connection failed.]
[2012-04-30 10:56:58Z] [0008] Output: [Connection failed.]
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] Scheduling output: [Peer certificate rejected
]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [Disconnected from server
]
[2012-04-30 10:56:58Z] [0008] Output: [Peer certificate rejected
]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [Connection failed.
]
[2012-04-30 10:56:58Z] [0008] Output: [Disconnected from server
]
[2012-04-30 10:56:58Z] [0007] Scheduling output: [AUTH command ok. Expecting TLS Negotiation.]
[2012-04-30 10:56:58Z] [0008] Output: [Connection failed.
]
[2012-04-30 10:56:58Z] [0008] Output: [AUTH command ok. Expecting TLS Negotiation.]
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessInputEvent entering
[2012-04-30 10:56:58Z] [0008] Exception: WinSCP.SessionRemoteException: Peer certificate rejected
Disconnected from server
Connection failed.
AUTH command ok. Expecting TLS Negotiation.
[2012-04-30 10:56:58Z] [0008] Exception: WinSCP.SessionRemoteException: Connection failed. ---> WinSCP.SessionRemoteException: Peer certificate rejected
Disconnected from server
Connection failed.
AUTH command ok. Expecting TLS Negotiation.
--- End of inner exception stack trace ---
[2012-04-30 10:56:58Z] [0008] Failed: [WinSCP.SessionRemoteException: Connection failed. ---> WinSCP.SessionRemoteException: Peer certificate rejected
Disconnected from server
Connection failed.
AUTH command ok. Expecting TLS Negotiation.
--- End of inner exception stack trace ---]
[2012-04-30 10:56:58Z] [0008] Exception: WinSCP.SessionRemoteException: Connection failed. ---> WinSCP.SessionRemoteException: Peer certificate rejected
Disconnected from server
Connection failed.
AUTH command ok. Expecting TLS Negotiation.
--- End of inner exception stack trace ---
at WinSCP.SessionLogReader.Read(LogReadFlags flags)
at WinSCP.ElementLogReader.Read(LogReadFlags flags)
at WinSCP.CustomLogReader.TryWaitForNonEmptyElement(String localName, LogReadFlags flags)
at WinSCP.CustomLogReader.WaitForNonEmptyElement(String localName, LogReadFlags flags)
at WinSCP.Session.Open(SessionOptions sessionOptions)
[2012-04-30 10:56:58Z] [0008] Session.Cleanup entering
[2012-04-30 10:56:58Z] [0008] Command: [exit]
[2012-04-30 10:56:58Z] [0008] ExeSessionProcess.ExecuteCommand entering
[2012-04-30 10:56:58Z] [0008] ExeSessionProcess.ExecuteCommand leaving
[2012-04-30 10:56:58Z] [0007] Scheduling output: [winscp> exit]
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessInputEvent leaving
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvent leaving
[2012-04-30 10:56:58Z] [0008] ExeSessionProcess.Close entering
[2012-04-30 10:56:58Z] [0008] ExeSessionProcess.Close leaving
[2012-04-30 10:56:58Z] [0008] ExeSessionProcess.Dispose entering
[2012-04-30 10:56:58Z] [0007] ExeSessionProcess.ProcessEvents leaving
[2012-04-30 10:56:58Z] [0008] ExeSessionProcess.Dispose leaving
[2012-04-30 10:56:58Z] [0008] Session.Cleanup leaving
[2012-04-30 10:56:58Z] [0008] Session.Open leaving
[2012-04-30 10:56:58Z] [0008] Session.Dispose entering
[2012-04-30 10:56:58Z] [0008] Session.Cleanup entering
[2012-04-30 10:56:58Z] [0008] Session.Cleanup leaving