Decrypting using CA Certificate

From: prem (premkumarjayaram_at_hotmail.com)
Date: 06/27/03

  • Next message: Richard Thibault: "connect as"
    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


  • Next message: Richard Thibault: "connect as"

    Relevant Pages

    • Re: Encrypt/Decrypt String with RSA and X509Certificate
      ... > I want to encrypt a string "secret message" with the public key of the ... > certificate and decrypt this string with the private key. ... > RSAPublicKey rsaPublicKey = cert.getPublicKey; ...
      (comp.lang.java.programmer)
    • Encrypt/Decrypt String with RSA and X509Certificate
      ... I want to encrypt a string "secret message" with the public key of the ... certificate and decrypt this string with the private key. ... but I can't import the private key from the ...
      (comp.lang.java.programmer)
    • RE: EFS File Share Help
      ... And your roaming profile cannot work properly. ... If user tries to encrypt a remote file/folder stored ... user, and subsequently requests, or generates a self-signed EFS ... The certificate and private key are loaded in a local profile ...
      (microsoft.public.windows.server.sbs)
    • RE: 2007 User Level Security
      ... encrypted string. ... the way I use it is to encrypt user names and passwords and store the ... Dim prp As Property ... Dim dbs As Object, prp As Variant ...
      (microsoft.public.access.modulesdaovba)
    • Re: Security flaw in how Outlook verifies digital signatures
      ... > Security Flaw with Digital signatures in Microsoft Outlook - ... > Emails in Microsoft Outlook digitally signed with S/MIME using either ... > a commercial personal certificate like Verisign or using a certificate ... whom the certificate was assigned that used it to sign or encrypt the ...
      (microsoft.public.outlook)