SSL with server certificate

Oct 26, 2010 at 2:31 PM

First off awesome project!! We did project here at work for hosting our own asp.net/web server environment and its no where near as complete or robust as this!

I'm interested in your SSL implementation, I got the client cert example to work with a self generated cert - awesome. Now I would like to see an example of how to do SSL with a server certificate...can you provide more light on that?

 

thanks!

justin

Oct 26, 2010 at 2:59 PM

Furthermore im a bit confused as theres 2 properties UseClientCertificate ( SecureHttpListener and SecureHttpContext) and SecureHttpContext.UseClientCertificate is never assigned to anywhere, so its value will always be false, but in the https sample in Program.cs im setting listener.UseClientCertificate = true and in SecureHttpContext.CreateStream we say sslStream.AuthenticateAsServer(_certificate, UseClientCertificate, Protocol, false) and UseClientCertificate here is always going to be false ? Setting it to true causes the https request to fail with an exception. Also in the https sample I can change Program.cs listener.UseClientCertificate = false and the request still succeeds as long as SecureHttpContext.UseClientCertificate = false. So I'm quite confused here...im pretty sure SSL is working cause the request succeeds in my browser but am I using client certificate or server? the self generated certificate that i created on my computer i placed in to the trusted root ca bucket (for testing with some WCF and Silverlight projects).......

please help?

 

Justin


Coordinator
Oct 27, 2010 at 6:36 PM
I'll get back to you in this weekend.

On Tue, Oct 26, 2010 at 4:59 PM, ftballguy45 <notifications@codeplex.com> wrote:

From: ftballguy45

Furthermore im a bit confused as theres 2 properties UseClientCertificate ( SecureHttpListener and SecureHttpContext) and SecureHttpContext.UseClientCertificate is never assigned to anywhere, so its value will always be false, but in the https sample in Program.cs im setting listener.UseClientCertificate = true and in SecureHttpContext.CreateStream we say sslStream.AuthenticateAsServer(_certificate, UseClientCertificate, Protocol, false) and UseClientCertificate here is always going to be false ? Setting it to true causes the https request to fail with an exception. Also in the https sample I can change Program.cs listener.UseClientCertificate = false and the request still succeeds as long as SecureHttpContext.UseClientCertificate = false. So I'm quite confused here...im pretty sure SSL is working cause the request succeeds in my browser but am I using client certificate or server? the self generated certificate that i created on my computer i placed in to the trusted root ca bucket (for testing with some WCF and Silverlight projects).......

please help?

Justin



Read the full discussion online.

To add a post to this discussion, reply to this email (webserver@discussions.codeplex.com)

To start a new discussion for this project, email webserver@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com