Troubles with CAPICOM EnvelopedData.Decrypt

Ask a Question related to ASP Components, Design and Development.

  1. #1

    Default 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



    Alexei Pashin Guest

  2. Similar Questions and Discussions

    1. Urgent Help on CAPICOM Decrypt and Encrypt
      Dear all, I'm new to CAPICOM not sure how to use it in C# Web application. As I know, CAPICOM does have a function to decrypt and encrypt some...
    2. CAPICOM, Certificate Stores, and ASP.NET
      Hello, 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...
    3. WebServices and CAPICOM
      (Type your message here) -------------------------------- From: Sergio Lera Hello, I am developing a web service that needs to create a...
    4. How to install a key to use with Capicom
      I have installed Capicom and it seems to be functioning, but I was given a key (in a .key file) and I am not sure what to do with this file.. do I...
    5. Troubles with CAPICOM.EnvelopedData.decode
      Hello, I am developing Web-site. Some customers' information must be encrypted and stored in database. I use EnvelopedData from CAPICOM library to...
  3. #2

    Default 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


    Alexei Pashin Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139