martin wrote:
Please attach a complete log.
Also I assume you mean FTPS, not SFTP. There are no certificates in SFTP.
Thanks for the reply, yes I do mean FTPS sorry bout that.
Here is the full snippet from the log with some identifying info scrubbed. I can't upload the whole log, there is too much to scrub, hopefully this will help. One thing to note, I launched WinSCP and connected to the site and since then the auto connection via the script started working again.
2018-01-18 22:15:30.226 Connecting to xyz.domain.com ...
. 2018-01-18 22:15:30.404 Connected with ftp.xyz.domain.com, negotiating TLS connection...
< 2018-01-18 22:15:30.491 220 Microsoft FTP Service
> 2018-01-18 22:15:30.491 AUTH TLS
< 2018-01-18 22:15:30.579 234 AUTH command ok. Expecting TLS Negotiation.
. 2018-01-18 22:15:30.999 Verifying certificate for "" with fingerprint 00:XX: and 20 failures
. 2018-01-18 22:15:30.999 Certificate common name "ftp.xyz.domain.com" matches hostname
. 2018-01-18 22:16:01.841 Certificate failed to verify against Windows certificate store: Error: 80092013, Chain index: 0, Element index: 0
. 2018-01-18 22:16:01.841 Asking user:
. 2018-01-18 22:16:01.841 **The server's certificate is not known. You have no guarantee that the server is the computer you think it is.**
. 2018-01-18 22:16:01.841
. 2018-01-18 22:16:01.841 Server's certificate details follow:
. 2018-01-18 22:16:01.841
. 2018-01-18 22:16:01.841 Issuer:
. 2018-01-18 22:16:01.841 - Organization: GoDaddy.com, Inc.,
https://certs.godaddy.com/repository/, Go Daddy Secure Certificate Authority - G2
. 2018-01-18 22:16:01.841 - Location: US, Arizona, Scottsdale
. 2018-01-18 22:16:01.841
. 2018-01-18 22:16:01.841 Subject:
. 2018-01-18 22:16:01.841 - Organization: Domain Control Validated, ftp.xyz.domain.com
. 2018-01-18 22:16:01.841
. 2018-01-18 22:16:01.841 Valid: 8/17/2016 8:46:38 PM - 9/5/2019 9:00:21 PM
. 2018-01-18 22:16:01.841
. 2018-01-18 22:16:01.841 Fingerprint (SHA-1): 00
. 2018-01-18 22:16:01.841
. 2018-01-18 22:16:01.841 Summary: Unable to get local issuer certificate. The error occurred at a depth of 3 in the certificate chain.
. 2018-01-18 22:16:01.841
. 2018-01-18 22:16:01.841 If you trust this certificate, press Yes. To connect without storing certificate, press No. To abandon the connection press Cancel.
. 2018-01-18 22:16:01.841
. 2018-01-18 22:16:01.841 Continue connecting and store the certificate? ()
. 2018-01-18 22:16:11.980 Peer certificate rejected
. 2018-01-18 22:16:11.980 Disconnected from server
. 2018-01-18 22:16:11.980 Connection failed.