Re: It says that it's going to store a certificate.
Actually you need to use
https://winscp.net/eng/docs/library_sessionoptions#tlshostcertificatefingerprint
TlsHostCertificateFingerprint
.
https://winscp.net/eng/docs/library_sessionoptions#tlshostcertificatefingerprint