Web Services with SSL

C

Chizl

When I Google, C# Web Service SSL, I get back everything for IIS, running
SSL for C# developers.. Not what I'm looking for.

I've developed my own Web Server in C# and I want to support SSL. As a
test I changed the port over to 443 and had my browser hit it. It hits it
fine, but as I'm watching the data that came from IE it looks encrypted by
default.

(2) Questions..

1) Where is a good starting point, web site, url, that will help me
understand what I need to do to add SSL support to my web server. Possibly
not something like W3 that is cryptic to me already.

2) I thought IE would make a request then the Web Server would respond with
the cert to be used, why is the data coming from IE already encrypted?
 
N

Nicholas Paldino [.NET/C# MVP]

Chizl,

You really ^want^ to look at a spec, as most of the browsers are going
to adhere to the same spec when interacting with a server that supports SSL.

When using SSL, you are using transport layer security. You might want
to look at the Wikipedia entry on it to see why IE doesn't just make a
request in plain text:

http://en.wikipedia.org/wiki/Transport_Layer_Security

As for what you can do, you should look at the SslStream class in the
System.Net.Security namespace. It will should do what you want.
 
C

Chizl

Nicholas Paldino said:
Chizl,

You really ^want^ to look at a spec, as most of the browsers are going
to adhere to the same spec when interacting with a server that supports
SSL.

When using SSL, you are using transport layer security. You might want
to look at the Wikipedia entry on it to see why IE doesn't just make a
request in plain text:

http://en.wikipedia.org/wiki/Transport_Layer_Security

As for what you can do, you should look at the SslStream class in the
System.Net.Security namespace. It will should do what you want.

Great thanks, I'll check it out.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top