Re: An existing connection was forcibly closed by (General questions)
All the samples reading key file from specified path.
eg: keys.Load( C:0000001 , ftpstest )
Is there any possibility to load or find key without using folder path.
Because we are having the issue in reading file from path.
For eg:
For certificate we are installing it in certificare store and finding it using the following code.
Dim store As New X509Store( TrustedPeople , StoreLocation.CurrentUser)
store.Open(OpenFlags.[ReadOnly] Or OpenFlags.OpenExistingOnly)
Dim newCert As System.Security.Cryptography.X509Certificates.X509Certificate2 = store.Certificates.Find(X509FindType.FindBySubjectName, ftp.caldev2.com , False)(0)
ftps1.Certificate = newCert
Do you have any similar kind of code for keys.