473,387 Members | 1,516 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Troubles with CAPICOM EnvelopedData.Decrypt

I use EnvelopedData from CAPICOM library to encrypt and decrypt security
info on my ASP site.
I got and installed test VerySign certificate on my server in Personal
store and successfully encrypt data. As a recipient I used this certificate.
I could successfully encrypt data.
Before decryption i try to check availability of Private key:
1 Property objCertificate.HasPrivateKey() returns TRUE
2 Property objCertificate.PrivateKey.IsAccessible() returns FALSE
To give IIS server privileges to access the private key associated with the
certificate
I try to update ACL as it shown in samples\vbs\CSetKeyPerm.vbs but I got an
error message:
(80090016) Keyset does not exist
when i tried to check property objCertificate.PrivateKey.UniqueContainerName

My private key must be contained on folder
Documents and Settings\All Users\Application
Data\Microsoft\Crypto\RSA\MachineKeys

Could you help me and explain my mistake
Tell me please, could I decrypt message after I give privileges to IIS_user?
Thank you in advance.
Alexey Pashin

Jul 19 '05 #1
0 3429

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mario Rodriguez | last post by:
Hi, I'm using interop-Capicom in my C# application, but when I try to use the CAPICOM_SMART_CARD_USER_STORE flag the following exception raises: The system cannot find the file specified. at...
1
by: Neil S. | last post by:
I am writing an ISAPI filter which is using CAPICOM to encrypt and decrypt cookie information. I've found that the encryption string being returned by CAPICOM a has carriage control and line feed....
0
by: Reena | last post by:
Hi, Building ASP.NET application in C#. How do I encrypt and decrypt data with CAPICOM in C#? Thanks, - Reena
1
by: Mohit | last post by:
Hi Friends I did not know where to post this question, so am posting it on ASP.Net forum (so please excue me Has any one used CapiCom.DLL. I am having problems with it, and am wondering if it...
0
by: Jonathan W. Zaleski | last post by:
I am trying to use the CAPICOM Package to Send Secure Emails, however, I am having a bit of trouble in getting it to work. I am able to get the proper certificate, and seemingly encode the...
0
by: Frederic ESNOUF \(MVP-ISA\) | last post by:
Hi, My question is about 3des, ... in fact the difference between 3DES with Capicom (VB) and VB.net With VB6/capicom, encrypting data is simple : message.Content = "This is my bank account :...
0
by: John | last post by:
Hello, I am trying to create a dll that has a capicom reference in it. After I do the following: Dim message As New CAPICOM.EncryptedData I recompile my dll. I don't receive any errors or...
2
by: stéphane bard | last post by:
Hi all, Has anyone ever used Python to work with Certificate Services in Windows? I'm trying to capicom dll with pywin32. I've found some reference about python and capicom in this mail...
1
by: CsharpDeveloper | last post by:
Hi, I have sucessfuly used the CAPICOM in .NET FrameWork, but when it comes to using in .NET Compact FrameWork it is giving me a COMException "Class not registered". I have created...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.