Re: X.509: Security Token does not support Data Encryption
From: Adam Tompkins (adam)
Date: 03/10/04
- Next message: Lucien: "Re: Solicit-response and other MEPs in .NET"
- Previous message: Eddie: "Solicit-response and other MEPs in .NET"
- In reply to: ByronKim: "Re: X.509: Security Token does not support Data Encryption"
- Next in thread: Andreas Mertens: "Re: X.509: Security Token does not support Data Encryption"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 10 Mar 2004 14:31:21 -0700
Hi Byron
Thanks for the reply.
I don't see a 'Both' option: all the certs displayed have either 'Exchange'
or 'Signature' as the Key Usage but never both.
Do I need to change something on the CA server?
- Adam
"ByronKim" <byronkim@online.microsoft.com> wrote in message
news:ui$LonmBEHA.2600@TK2MSFTNGP09.phx.gbl...
This is certificate Usage problem. You need to set Usage type of Both(i.e.
Signature and Exchange) when you request Certificate in W2K CA.
thanks
Byron Kim
"Adam Tompkins" <adam AT 5By5Software DOT com> wrote in message
news:u9Zsz8VBEHA.628@TK2MSFTNGP10.phx.gbl...
I have installed a 'Client Authentication' certificate into my local user
store from a Win2K CA. When I run the following code (as a Windows
Application) it always fails on the .SupportsDataEncryption test. I removed
the test code and tried to encrypt a SOAP message body anyway and it failed
for the same reason.
X509CertificateStore store =
X509CertificateStore.CurrentUserStore(X509CertificateStore.MyStore);
store.OpenRead();
X509Certificate certificate = (X509Certificate)store.Certificates[2];
if (!certificate.SupportsDataEncryption)
throw new ApplicationException("The certificate does not support
encryption.");
I have verified that the correct certificate is being retrieved from the
store and, from reading various posts in the newsgroups, I believe that this
type of certificate should support encryption. I have also tried the same
thing with both 'User' and 'CodeSigning' certificates with the same result.
Any ideas what I'm missing here?
Thanks.
- Adam
- Next message: Lucien: "Re: Solicit-response and other MEPs in .NET"
- Previous message: Eddie: "Solicit-response and other MEPs in .NET"
- In reply to: ByronKim: "Re: X.509: Security Token does not support Data Encryption"
- Next in thread: Andreas Mertens: "Re: X.509: Security Token does not support Data Encryption"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|