Thank you for the response.
I'm creating a WinForms app to automate Let's Encrypt TLS/SSL Cert issuance/renewal. A step is to upload Challenge response files to appropriate folders on my hosted domains which verifies my ownership of the domains. I can do this using FTP but based on what I've read on this site using the unsecured FTP protocol is not advised. Further the hosting provider (namecheap) prefers SFTP, advises against the use of unsecured FTP and disallows FTP on all of their hosting packages except the "basement" package to which I'm currently subscribing. And finally, I've presumed that "more secure" = "better".
As a result I'm trying to understand how to use SFTP but when I change the
SessionOptions.Protocol
from
Ftp
to
Sftp
it throws the
FTP connect error:: System.ArgumentException: SessionOptions.Protocol is Protocol.Sftp or Protocol.Scp, but SessionOptions.SshHostKeyFingerprint is not set.
error which led to
SshHostKeyFingerprint
research (obviously unsuccessfully). It was my understanding that
string fp = session.ScanFingerprint(SessionOptionsInstance, "SHA-256")
would return the needed fingerprint.
Do I really need SFTP to avoid malicious attacks? If so, how do I find the necessary fingerprint?