473,748 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Transport Layer Security using C# 2.0

Hi All,
I want to develop an web application using TLS (C# 2.0) to test our
server, which just installed the AT/TLS encryption on test system's
CICS Sockets. I here .NET 2.0 support TLS, but I can not find any
examples to do this. Is there some example out there I can take a
look.

Do I have to install x509 test certificate in my machine.
How do I make my application can get the Handshake with the server
using TLS.

Any help is really appreciate it. Thanks in advance.

Dec 13 '07 #1
3 3068
I believe what you want is the SslStream class in the
System.Net.Secu rity namespace. It was introduced in .NET 2.0, so you have
access to it.

Also, there are a number of methods (as well as constructor overloads)
which allow for how you choose to select the x509 certificate to use with
the SSL stream.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

<nt******@yahoo .comwrote in message
news:bd******** *************** ***********@t1g 2000pra.googleg roups.com...
Hi All,
I want to develop an web application using TLS (C# 2.0) to test our
server, which just installed the AT/TLS encryption on test system's
CICS Sockets. I here .NET 2.0 support TLS, but I can not find any
examples to do this. Is there some example out there I can take a
look.

Do I have to install x509 test certificate in my machine.
How do I make my application can get the Handshake with the server
using TLS.

Any help is really appreciate it. Thanks in advance.
Dec 13 '07 #2
If you are doing a simple web app, check out the csharphttp sample. It can to
https easily.

http://support.microsoft.com/kb/303436

/steveA

nt******@yahoo. com wrote:
Hi All,
I want to develop an web application using TLS (C# 2.0) to test our
server, which just installed the AT/TLS encryption on test system's
CICS Sockets. I here .NET 2.0 support TLS, but I can not find any
examples to do this. Is there some example out there I can take a
look.

Do I have to install x509 test certificate in my machine.
How do I make my application can get the Handshake with the server
using TLS.

Any help is really appreciate it. Thanks in advance.
Dec 13 '07 #3
On Dec 13, 1:51 pm, "Nicholas Paldino [.NET/C# MVP]"
<m...@spam.guar d.caspershouse. comwrote:
I believe what you want is the SslStream class in the
System.Net.Secu rity namespace. It was introduced in .NET 2.0, so you have
access to it.

Also, there are a number of methods (as well as constructor overloads)
which allow for how you choose to select the x509 certificate to use with
the SSL stream.

--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard .caspershouse.c om

<ntuye...@yahoo .comwrote in message

news:bd******** *************** ***********@t1g 2000pra.googleg roups.com...
Hi All,
I want to develop an web application using TLS (C# 2.0) to test our
server, which just installed the AT/TLS encryption on test system's
CICS Sockets. I here .NET 2.0 support TLS, but I can not find any
examples to do this. Is there some example out there I can take a
look.
Do I have to install x509 test certificate in my machine.
How do I make my application can get the Handshake with the server
using TLS.
Any help is really appreciate it. Thanks in advance.- Hide quoted text -

- Show quoted text -
Thanks for your help. I will look into it, meanwhile do you know are
there example I can take a look.

Again, Thanks for your help.
Dec 13 '07 #4

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

Similar topics

2
2505
by: deba | last post by:
From the documentation of SOAP it seems SOAP supports both HTTP and TCP protocol.I did not find much documentation how to use TCP as transport layer in SOAP? Does the SOAP toolkit 2.0 supports using TCP as transport layer? My reqmt is to make SOAP request without the help of HTTP. I have already built up COM objects which are served over DCOM to many clients.Can I serve the same objects over SOAP.
16
9033
by: MS newsgroup | last post by:
I don't have clear reasons why we need business logic layer and data logic layer instead of having only data logic layer. Are there any good reasons for that?
0
1026
by: Shivam | last post by:
I have a 3-tier system where the front layer is on VB6.0, middle layer is on ANSIC++ and back-end is mysql. I would like to shift my system to web-based, without touching middle layer & back-end layer. Could anyone please help me on this so that I could able to port my system to web in less time/money
0
1712
by: tom | last post by:
What I want to do is upload a zip file to an https website. The site itself uses secure File transport. Now webclient has the simplicity to upload a file, but I cannot attach the neccessary cert to connect. If I use httpwebrequest I can successfully attach the cert but then what? Any ideas how to send this zip file over? Here is the code I started to play with.... Dim wfClient As WebClient = New WebClient() Dim uri As String =...
0
2409
by: drawing in aspnet | last post by:
Question about putting the data layer in a separate class library. I keep reading that the data layer should be separated from the presentation layer and put in its own class library. I am trying to do this but running into a problem. I'm hoping someone can point me in the right direction. I first create a class library (all code in C#) and within this class library create a very simple Sql Server Express database (.mdb) file. It's...
1
3084
by: Tobias Grimm | last post by:
Hi! I'm trying to get a WebService running (self hosting, without IIS) that uses SSL and loads the SSL key/certificate from a file (without using httpcfg.exe). I have a running service and netstat shows a listening https interface, but I can't access the service or the wsdl meta data. Any ideas, what's going wrong here (see code below)?
0
2558
by: =?Utf-8?B?RVNQTlNUSQ==?= | last post by:
Hi, I'm working on a Web application that consumes a WCF Service that uses basic HTTP binding with transport security and certificates for client credentials. Just to clarify, the WebServer (IIS 7) is the client, and an application that self hosts the WCF service is the server. This is the binding configuration that I use on the client and service side: <bindings> <basicHttpBinding>
0
1146
by: develop12 | last post by:
Does any one know how to attach a client certificate in WSE 3.0 for transport layer security? For example HttpWebReques has ClientCertificate Property and you can attach the client cert. I'm trying to have a generic proxy for calling multiple web services and so don't want to use WebServiceClientProtocol since that is tied to a web method using soapdocumentmethodattribute. I want to use SoapClient (Microsoft.Web.Services3).... Any...
0
2734
by: =?Utf-8?B?TWlraGFpbCBNYWtzaW1lbmtv?= | last post by:
I've heard that WCF net.tcp transport security is provided by Windows TLS. At the same time, I've read that internally it relies on PKI (Public Key Infrastructure), and requires some kind of CA (Certificate Authority) to issue and validate certificates. So, is CA needs to be configured in a Windows domain for net.tcp encryption to work? If not, what certificates are being used in net.tcp transport security? Thanks!
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9548
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9374
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9325
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9249
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8244
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4607
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.