Click here to Skip to main content
15,899,475 members
Home / Discussions / C#
   

C#

 
GeneralRe: assembly Pin
led mike26-Sep-06 7:15
led mike26-Sep-06 7:15 
GeneralRe: assembly Pin
LongRange.Shooter26-Sep-06 7:38
LongRange.Shooter26-Sep-06 7:38 
JokeRe: assembly Pin
Guffa26-Sep-06 7:58
Guffa26-Sep-06 7:58 
GeneralRe: assembly Pin
led mike26-Sep-06 8:21
led mike26-Sep-06 8:21 
GeneralRe: assembly Pin
J4amieC26-Sep-06 8:27
J4amieC26-Sep-06 8:27 
QuestionWhich Check Object Use Pin
ytubis26-Sep-06 6:21
ytubis26-Sep-06 6:21 
AnswerRe: Which Check Object Use Pin
Guffa26-Sep-06 8:53
Guffa26-Sep-06 8:53 
QuestionSecure Sockets and client certificate exchange Pin
Keith Holme26-Sep-06 6:00
Keith Holme26-Sep-06 6:00 
I am writing a client/server application that uses the SslStream class to provide a secure communications channel.
I have got the communications working, and the server certificate validation works fine (this is using self signed certs. generated by MakeCert.exe thanks to John Howard's blog http://blogs.technet.com/jhoward/archive/2005/02/02/365323.asp).

I would like to perform client certificate validation. I have generated certificates on the client in the same way as I did on the server and set the clientCertificateRequired parameter = true in the AuthenticateAsServer method as follows.

sslStream.AuthenticateAsServer(serverCertificate, clientCertificateRequired, SslProtocols.Tls, false);

When the server hits this line I get an exception:

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

I have searched and searched and all I can find is stuff to do with IIS and web services.

Does anyone know what I have to do to get this working.


Thanks in advance.

Keith

QuestionDatarow functionality Pin
Saamir26-Sep-06 5:51
Saamir26-Sep-06 5:51 
AnswerRe: Datarow functionality Pin
grivix26-Sep-06 6:40
grivix26-Sep-06 6:40 
GeneralRe: Datarow functionality Pin
Saamir26-Sep-06 8:56
Saamir26-Sep-06 8:56 
QuestionProgramatically zip a file Pin
Goalie3526-Sep-06 5:48
Goalie3526-Sep-06 5:48 
AnswerRe: Programatically zip a file Pin
User 665826-Sep-06 6:17
User 665826-Sep-06 6:17 
GeneralRe: Programatically zip a file Pin
Nadia Monalisa26-Sep-06 7:30
Nadia Monalisa26-Sep-06 7:30 
GeneralRe: Programatically zip a file Pin
Ed.Poore26-Sep-06 9:26
Ed.Poore26-Sep-06 9:26 
AnswerRe: Programatically zip a file Pin
Suelinda_W5-Oct-06 9:21
Suelinda_W5-Oct-06 9:21 
QuestionWebBrowser control Pin
zaboboa26-Sep-06 5:18
zaboboa26-Sep-06 5:18 
AnswerRe: WebBrowser control Pin
Nader Elshehabi26-Sep-06 5:44
Nader Elshehabi26-Sep-06 5:44 
AnswerRe: WebBrowser control Pin
Nadia Monalisa26-Sep-06 5:54
Nadia Monalisa26-Sep-06 5:54 
GeneralRe: WebBrowser control Pin
zaboboa26-Sep-06 6:44
zaboboa26-Sep-06 6:44 
QuestionCancel Closing Form in Form Closing event Pin
Nadia Monalisa26-Sep-06 5:03
Nadia Monalisa26-Sep-06 5:03 
AnswerRe: Cancel Closing Form in Form Closing event Pin
wheelerbarry26-Sep-06 5:13
wheelerbarry26-Sep-06 5:13 
GeneralRe: Cancel Closing Form in Form Closing event Pin
Nadia Monalisa26-Sep-06 5:27
Nadia Monalisa26-Sep-06 5:27 
GeneralRe: Cancel Closing Form in Form Closing event Pin
Nader Elshehabi26-Sep-06 5:41
Nader Elshehabi26-Sep-06 5:41 
GeneralRe: Cancel Closing Form in Form Closing event Pin
Nadia Monalisa26-Sep-06 7:03
Nadia Monalisa26-Sep-06 7:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.