473,396 Members | 1,849 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

FTP SSL Certificate - ServicePoint

I am trying to implement FtpWebRequest with EnableSsl = true.

The WS_FTP server has our VeriSign Server Certificate installed and with the
WS_FTP Pro client am able to connect. However, with their client we are
presented with a dialog and must manually add the Certificate to the
client's Trusted Authorities database. Seems odd but Ipswitch verified, that
is how to proceed.

Now with .NET 2.0 I am getting a response of...

"The remote certificate is invalid according to the validation procedure."

However when looking at the results of the ServicePoint, the .Certificate is
null?

I saw one blog that had something to do with having a space in the name
but...

Any assistance would be greatly appreciated, thank you,

- Mike
______________________________

public string ftpDirList()
{

StreamReader srReader = null;

m_ftpRequest = (FtpWebRequest)WebRequest.Create(m_uri.Uri);
m_ftpRequest.KeepAlive = false;
m_ftpRequest.Credentials = m_creds;
m_ftpRequest.EnableSsl = m_bSsl;
m_ftpRequest.UsePassive = true;
m_ftpRequest.Method = WebRequestMethods.Ftp.ListDirectory;

ServicePoint sp = m_ftpRequest.ServicePoint;

if (sp.Certificate == null)
Console.WriteLine("ServicePoint Certificate is null");

Console.WriteLine("ServicePoint connections = {0}.", sp.ConnectionLimit);

m_ftpResponse = (FtpWebResponse)m_ftpRequest.GetResponse();
srReader = new StreamReader(m_ftpResponse.GetResponseStream());

return (srReader.ReadToEnd());

}
Jan 24 '07 #1
1 6263
Hi Mike,

I also encounter the same problem. You manage resolve this issue?

It seem like the servicepoint doesn't receive any things.

--
Regards,
Venedict
"mike" wrote:
I am trying to implement FtpWebRequest with EnableSsl = true.

The WS_FTP server has our VeriSign Server Certificate installed and with the
WS_FTP Pro client am able to connect. However, with their client we are
presented with a dialog and must manually add the Certificate to the
client's Trusted Authorities database. Seems odd but Ipswitch verified, that
is how to proceed.

Now with .NET 2.0 I am getting a response of...

"The remote certificate is invalid according to the validation procedure."

However when looking at the results of the ServicePoint, the .Certificate is
null?

I saw one blog that had something to do with having a space in the name
but...

Any assistance would be greatly appreciated, thank you,

- Mike
______________________________

public string ftpDirList()
{

StreamReader srReader = null;

m_ftpRequest = (FtpWebRequest)WebRequest.Create(m_uri.Uri);
m_ftpRequest.KeepAlive = false;
m_ftpRequest.Credentials = m_creds;
m_ftpRequest.EnableSsl = m_bSsl;
m_ftpRequest.UsePassive = true;
m_ftpRequest.Method = WebRequestMethods.Ftp.ListDirectory;

ServicePoint sp = m_ftpRequest.ServicePoint;

if (sp.Certificate == null)
Console.WriteLine("ServicePoint Certificate is null");

Console.WriteLine("ServicePoint connections = {0}.", sp.ConnectionLimit);

m_ftpResponse = (FtpWebResponse)m_ftpRequest.GetResponse();
srReader = new StreamReader(m_ftpResponse.GetResponseStream());

return (srReader.ReadToEnd());

}
Jan 26 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: borovA | last post by:
I am trying to access an Web. The problem is that they expect the client to submit a certificate. I can access the site from my browser, but it always asks which certificate I want to use. How...
4
by: Matt Frame | last post by:
I am working on a special ASP.Net application that receives files from customers. The connection is made via HTTPS and the client sends the file as a POST to my ASP.Net listener. All of this...
0
by: Will | last post by:
It seems that I have scoured the net and came up empty handed. I have an ASP.net app that posts xml to another company's servlet. For some transactions, they do not require a certificate, but...
3
by: jmhmaine | last post by:
How do I programmatically read an SSL certificate when using connecting with WebClient? I need to verify the domain name matches the certificate and that the Expiration Date is valid before I post...
6
by: JIM.H. | last post by:
Hello, I am trying to create a certificate for our internet for our employees so that they can login to system from home. Do I have to go, for example, VeriSign to get a certificate? Can I create...
2
by: Stewart Bourke | last post by:
I have added the following class to my code for consuming a webservice. I want to be able to accept all certificates for testing etc.. public class TrustAllCertificatePolicy :...
0
by: jakobsgaard | last post by:
It is possible to Map a certificate to a Active Directory User Account from DotNet? Please provide an example. Best regards, Ejnar Jakobsgaard...
0
by: Medtondo | last post by:
I have an app that uses the events in IE (SHDocVw). I can get the DownloadComplete event etc working well, but what I would like to do is get the SSL key that IE is using for the session. What I...
5
by: jitsu | last post by:
Hi all, I have a problem. I need to connect to Web Server, send a xml string (query) to it and receive another xml string (result). I have the location of the Web Server like:...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.