.NET 2.0 and SslStream authentication

From: Harkos (harkos_at_bol.com.br)
Date: 12/27/04


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

---


Relevant Pages

  • .NET 2.0 and SslStream authentication
    ... Could someone point me a tutorial on using SslStream? ... (ClientAuthenticate or ServerAuthenticate), I get an exception ... Invoke one of Authenticate overload ... exception (Win32Exception: ...
    (microsoft.public.dotnet.security)
  • Solution: Asp.Net and Smb shares - without impersonation
    ... At first glance, everyone seems to suggest using the "identity" tag in ... Impersonation is overkill. ... then I do the "net use" call to authenticate and try again. ... exception, then the file will actually not exist, and you get this error: ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: LDAP Authentication fails on Web Application
    ... I have developed an application to authenticate the user based on LDAP ... System.DirectoryServices.DirectoryEntry entry; ... <error: an exception of type: ... But the server is in operations, and the code works fine with the ...
    (microsoft.public.dotnet.framework.aspnet)
  • SslStream.BeginAuthenticateAsServer gives exception
    ... Does anyone know why I get an exception when I calll ... When I use AuthenticateAsServer, ... myself, so it must be the SslStream that closes the stream, assuming ... this.AuthenticateAsServerCallback, secureStream); ...
    (microsoft.public.dotnet.security)
  • ChangePassword with ADAM
    ... We are trying to use Active Directory Application Mode (ADAM) for one of our ... We are able to authenticate using user created ... DirectoryEntry objResultEntry; ... catch (Exception e) ...
    (microsoft.public.windows.server.active_directory)