.NET 2.0 and SslStream authentication
From: Harkos (harkos_at_bol.com.br)
Date: 12/27/04
- Next message: Dominick Baier: ".NET 2.0 and SslStream authentication"
- Previous message: Paul Delcogliano: "problem with strong name CAS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 27 Dec 2004 16:03:48 -0200
Hi everyone,
Could someone point me a tutorial on using SslStream (.NET 2)? Here is
what I have:
* When I try to read or write to a SslStream which is not authenticated
(ClientAuthenticate or ServerAuthenticate), I get an exception
(InvalidOperationException: "This operation is only allowed on
successfully authenticated context. Invoke one of Authenticate overload
methods first.");
* If I try to authenticate the server with ServerAuthenticate, I get an
exception (Win32Exception: "No credentials available on security
package.", translated from portuguese);
* If I authenticate the client only, with ClientAuthenticate, I also get
the first exception.
So, if someone could help, what should I do to use a SslStream?
Extra info: I'm using .NET 2.0.40607, Windows 2000 Professional (logging
on AD) and test certificate created with makecert.exe.
Thanks,
Harkos
---
- Next message: Dominick Baier: ".NET 2.0 and SslStream authentication"
- Previous message: Paul Delcogliano: "problem with strong name CAS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|