.NET 2.0 and SslStream authentication
From: Dominick Baier (dotnet_at_leastprivilege.com)
Date: 12/27/04
- Next message: Harkos: "Re: .NET 2.0 and SslStream authentication"
- Previous message: Harkos: ".NET 2.0 and SslStream authentication"
- Next in thread: Harkos: "Re: .NET 2.0 and SslStream authentication"
- Reply: Harkos: "Re: .NET 2.0 and SslStream authentication"
- Maybe reply: Dominick Baier: "Re: .NET 2.0 and SslStream authentication"
- Maybe reply: Dominick Baier: "Re: .NET 2.0 and SslStream authentication"
- Maybe reply: Dominick Baier: "Re: .NET 2.0 and SslStream authentication"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
To: microsoft.public.dotnet.security Date: Mon, 27 Dec 2004 10:49:11 -0800
hi,
i am currently working on a sample and a tool to troubleshoot with SslStream - i half way finished (and working so far). i can send you what i got...
One thing to note - i am not quite sure if SslStream in your .net build is working at all...i am using Nov CTP and they changed e.g. some of the method names, e.g. ClientAuthenticate -> AuthenticateAsClient a.s.o.
---
Dominick Baier - DevelopMentor
http://www.leastprivilege.com
nntp://news.microsoft.com/microsoft.public.dotnet.security/ 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
---
[microsoft.public.dotnet.security]
Relevant Pages
... 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)
... 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)
... 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)
... 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)
... 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)