Decrypting using CA Certificate
From: prem (premkumarjayaram_at_hotmail.com)
Date: 06/27/03
- Previous message: Jeff K: "Re: DSL security settings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 27 Jun 2003 09:09:39 -0700
Hello Everybody,
I am trying out a program from MSDN titled "Example C
Program: Sending and Receiving a Signed and Encrypted
Message" with few minor modification to encrypt a string
using the API CryptSignAndEncryptMessage ( I used a
certificate from MY store to sing the certificate and the
CA self signed certificate to encrypt the string ). I am
writing the encrypted string into a file and this files is
sent to the PC where the CA is installed ( installed a
Enterprise CA ). On the CA, I am reading the encrypted
blob from the file and decrypting it using the API
CryptDecryptAndVerifyMessageSignature() ( which uses the
private key of CA self sigend certificate ).
The problem I encounter is, while decrypting the string
CryptDecryptAndVerifyMessageSignature() fails and the
error code I get says that "Key does not exist". When I
view the CA self signed certificate, it does not say that
it has the private ket ( like it shows for the personal
certificates ).
I appreciate any kind of help in solving this problem.
Thanks.
-Prem
- Previous message: Jeff K: "Re: DSL security settings"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|