Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Security > CAPICOM, Certificate Stores, and ASP.NET

Thread Tools

CAPICOM, Certificate Stores, and ASP.NET

Posts: n/a

I'm working on an ASP.NET web application that takes in an encrypted data
token and decrypts it. On my Windows XP box, I have created a public/private
key pair using makecert.exe and imported it into the LocalMachine/MY
certificate store. However, when I get the encrypted token, I'm getting the
following error in my ASP page:

Certificate for recipient(s) specified in the EnvelopedData object cannot be

Now, when I run the exact same code as a standalone application, it works -
this leads me to believe that my problem is permissions-oriented. I have
downloaded and used the WinHTTPCertConfig tool to grant the ASPNET,
IUSR_machinename and IWAM_machinename accounts private key access to the
LOCAL_MACHINE\My key store. But when I access the local machine MY store and
iterate through the certificates, I am still getting an error accessing the
private key of the certificate that I want.

Does anybody have a suggestion for getting ASPNET access to the private keys?


Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with SSL and socket and certificate and idk Trukin Ruby 1 11-02-2007 12:32 AM
Win32::OLE and CAPICOM to find a certificate in certificate store will raise exception Perl Misc 0 07-20-2006 06:47 AM
Smart Card Certificate Logon and Smart Card Wireless EAP-TLS erha Wireless Networking 0 05-19-2005 01:40 AM
How to Import Certificate file into windows certificate store under IWAM account Helena Cai ASP General 0 08-29-2004 05:27 AM
LWP https and client certificate Zorba Perl 0 06-04-2004 10:27 PM