WinSCP batch disconnected because SSL cert problem
Hello Martin,
I have strange problem with WinSCP batch running from Powershell script.
Script is connecting to IIS FTPS server with Let's Encrypt certificate.
In my script I'm using -certificate= statement to tell WinSCP to trust server certificate.
I seen "Unable to get Local issuer certificate" in WinSCP log. I don't know what is wrong, because this "issuer" is not real issuer but client from which I ran the script... And this "issuer" certificate is computer self-signed certificate.
I don't understand why WinSCP verifies certificate of client itself (when it is not required at server side).
This computer is joined in windows domain environment. I'm able to connect through WinSCP GUI on this computer or by same batch script from non domain computer.
Log is attached (real domain name is replaced by "domain" string).
I have strange problem with WinSCP batch running from Powershell script.
Script is connecting to IIS FTPS server with Let's Encrypt certificate.
In my script I'm using -certificate= statement to tell WinSCP to trust server certificate.
I seen "Unable to get Local issuer certificate" in WinSCP log. I don't know what is wrong, because this "issuer" is not real issuer but client from which I ran the script... And this "issuer" certificate is computer self-signed certificate.
I don't understand why WinSCP verifies certificate of client itself (when it is not required at server side).
This computer is joined in windows domain environment. I'm able to connect through WinSCP GUI on this computer or by same batch script from non domain computer.
Log is attached (real domain name is replaced by "domain" string).