473,407 Members | 2,359 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,407 software developers and data experts.

Certificates and WebRequest

Hello..

In the good old days where I programmed using wininet.dll, I did'nt need to do anything to retrieve a sourcecode from a secureed site eg. HTTPS - port 443.

But in the new .NET it seems a lot more difficult, infact I dont seem to be able to solve a webrequest using SSL.

How do I manage a certificat in .NET

I cant understand why it's not built in just like the new cookiecontainer etc

Regard

Nov 16 '05 #1
4 2553
Bobstar,

It is. Have you checked out the ClientCertificates property on the
HttpWebRequest class? It should give you the functionality you need to
manage your own certificates (if you need to).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bobstar" <an*******@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.com...
Hello...

In the good old days where I programmed using wininet.dll, I did'nt need to do anything to retrieve a sourcecode from a secureed site eg. HTTPS -
port 443.
But in the new .NET it seems a lot more difficult, infact I dont seem to be able to solve a webrequest using SSL.
How do I manage a certificat in .NET?

I cant understand why it's not built in just like the new cookiecontainer etc.
Regards

Nov 16 '05 #2
Bobstar,

It is. Have you checked out the ClientCertificates property on the
HttpWebRequest class? It should give you the functionality you need to
manage your own certificates (if you need to).

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bobstar" <an*******@discussions.microsoft.com> wrote in message
news:0D**********************************@microsof t.com...
Hello...

In the good old days where I programmed using wininet.dll, I did'nt need to do anything to retrieve a sourcecode from a secureed site eg. HTTPS -
port 443.
But in the new .NET it seems a lot more difficult, infact I dont seem to be able to solve a webrequest using SSL.
How do I manage a certificat in .NET?

I cant understand why it's not built in just like the new cookiecontainer etc.
Regards

Nov 16 '05 #3
Bobstar,

If the protocol is HTTPS, then the port number is assumed to be 443 by
default (just like it is assumed to be port 80 by default for HTTP). If you
are using the standard assigned ports, then you don't need to specify them.
If you are not, then you must specify them.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bobstar" <an*******@discussions.microsoft.com> wrote in message
news:77**********************************@microsof t.com...
Thank you...
Just wondering (that's the way it's in wininet.dll), could the trouble be caused by a wrong port number ?. Is it being set automatically in
WebRequest? - Or do I have to specify port 80/ 443 ??
Kind regards

Nov 16 '05 #4
Bobstar,

If the protocol is HTTPS, then the port number is assumed to be 443 by
default (just like it is assumed to be port 80 by default for HTTP). If you
are using the standard assigned ports, then you don't need to specify them.
If you are not, then you must specify them.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Bobstar" <an*******@discussions.microsoft.com> wrote in message
news:77**********************************@microsof t.com...
Thank you...
Just wondering (that's the way it's in wininet.dll), could the trouble be caused by a wrong port number ?. Is it being set automatically in
WebRequest? - Or do I have to specify port 80/ 443 ??
Kind regards

Nov 16 '05 #5

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

Similar topics

0
by: Bobstar | last post by:
Hello.. In the good old days where I programmed using wininet.dll, I did'nt need to do anything to retrieve a sourcecode from a secureed site eg. HTTPS - port 443. But in the new .NET it seems...
3
by: Frank Schwarz | last post by:
Hello, we are implemting an application that uses a https connection for accessing a website. It is also possible to connect via http. With http every thing works fine. With https it is not...
0
by: Krishna | last post by:
Well, I got it working when running against my test server (IIS5 W2K svr, I will attach a sample of the code at the bottom of this message), but now I'm connecting to our client (Apache) I'm...
1
by: Nelson R. | last post by:
Hi, i need to get some info from a website page that requires an certificate. Ive got the provided certificate installed in IE, and when accessing the website page, it shows a window to...
0
by: deepak | last post by:
We retrieve data from a company called XYZ through httpwebrequest. The program is coded using VB.NET They have given a certificate to install. This certificate is included with the request object....
5
by: | last post by:
Hi all, HttpWebRequest, and SoapHttpClientProtocol both expose a ClientCertificates property, which can hold multiple client certificates, but on the service side, it can only receive one client...
9
by: vecozo | last post by:
-- This request concerns the applicability of KB 831138: FIX: A .NET Framework application that uses the System.Net.WebRequest method very frequently experiences OutOfMemoryException errors -- ...
2
by: steveS | last post by:
Hi all, I'm having trouble connecting to a Java web service using HttpWebRequest. I get the error message "The request was aborted: Could not create SSL/TLS secure channel". The Java service...
0
by: nomad | last post by:
Hi, I am using HTTPWebRequest to add a client certificate. I am then using HTTPWebRequest to POST xml to a web service which requires the attached client certificate to authenticate with their...
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?
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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.