Re: PKI in .net Program
- From: LauraColeman1@xxxxxxxxx
- Date: 11 Oct 2006 13:26:55 -0700
Thanks Joe. I did finally get this to work. Adding the client
certificate to the HttpWebRequest object was no problem. It just took
me a while to figure out how to access my client certificate from the
program.
So now I'm using PKI to authenticate the client to the server & vice
versa, but I'm not sure whether I'm using PKI encryption. If my
program sends data to the server will it automatically be encrypted
with the server's public key (or with a session key that was set up
during authentication)? Or does my program need to perform the
encryption?
Thanks again.
~Laura
Joe Kaplan wrote:
Typically, you need to tell your web service proxy or HttpWebRequest object
what client certificate to use via it's ClientCertificate property. Did you
try that?
If you need to prompt the user, you'll need to actually implement that UI
yourself. .NET 2.0 makes that easier.
Note that client certificates can provide all sorts of challenges when used
programmatically, especially in different operational contexts. Not every
user of the same machine can access the same private keys for the same
client certs. My experience in the newsgroups over the years is that if you
have these problems, they can be very difficult to troubleshoot.
Joe K.
--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
<LauraColeman1@xxxxxxxxx> wrote in message
news:1158268767.946932.28860@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I'm trying to access a UDDI registry server programmatically using
.net. The registry server is set to require client certificates. If I
access the registry through Internet Explorer, a window pops up asking
me to select a PKI certificate. However, if I try to access the
registry through a C# .net program, I'm not asked for a certificate -
the connection to the server just fails. Is there some way I can tell
the program to send my PKI certificate to the registry server?
.
- Follow-Ups:
- Re: PKI in .net Program
- From: Dominick Baier
- Re: PKI in .net Program
- Prev by Date: Re: PKI in .net Program
- Next by Date: Re: CASPOL - StrongName trusts not being applied
- Previous by thread: CliclOnce error
- Next by thread: Re: PKI in .net Program
- Index(es):
Relevant Pages
|