The server's certificate is not known
WinSCP version 6.3.7
When I use WinSCP command line:
Progress window =
When I run script:
Progress window =
If I press
But WinSCP does not store the trusted certificate and everytime I run the script it hangs waiting for manual approval.
When I use WinSCP command line:
winscp.com /command "open ftpes://zzzz1:ZZZzzzz%23%2F@Tools-n-Gizmos.com/"
Connecting to Tools-n-Gizmos.com ... TLS connection established. Waiting for welcome message... Connected Starting the session... Session started. Active session: [1] zzzz1@Tools-n-Gizmos.com winscp>
open ftpes://zzzz1:ZZZzzzz%23%2F@Tools-n-Gizmos.com/
Connecting to Tools-n-Gizmos.com ... 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: Issuer: - Organization: Let's Encrypt, R11 - Location: US Subject: - Organization: agora.serverg.net Valid: 1/21/2025 2:52:21 PM – 4/21/2025 2:52:20 PM Fingerprints: - SHA-256: bb:8d:25:99:c6:e1:fb:7f:98:4f:12:a1:a1:9a:dc:6b:83:df:b4:e8:7c:b2:20:dc:f4:c1:94:52:1e:cc:33:40 - SHA-1: e9:0e:26:00:9e:e0:72:3f:13:b5:4d:9b:4d:a1:4c:12:d9:6b:1e:18 Summary: Unable to get local issuer certificate. The error occurred at a depth of 2 in the certificate chain. Certificate was not issued for this server. You might be connecting to a server that is pretending to be "Tools-n-Gizmos.com". If you trust this certificate, press Yes. To connect without storing certificate, press No. To abandon the connection press Cancel. Continue connecting and store the certificate? (Y)es, (N)o, C(a)ncel (4 s), (C)opy Key:
y
then I get successful connection:
TLS connection established. Waiting for welcome message... Connected Starting the session... Session started. Active session: [1] zzzz1@Tools-n-Gizmos.com winscp>