Modify public key in a key container

From: Fab (fab_00_2002_at_msn.com)
Date: 12/29/04


Date: 29 Dec 2004 08:24:16 -0800

Hi,

I use the certification under Windows CE and I want to certify an
appli with the Windows Crypt API. I created a key container and a
signature associated with CryptAcquireContext and CryptGenKey. The
problem is that I want to use my own key and not a random key. I found
an issue which is using CryptImportKey but the public key generated is
not persistent and if I call CryptGetUserKey( hCryptProv,
AT_SIGNATURE, &hKey) after, my public key is lost. Anyone knows how to
modify a public key or import a persistent public key in a key
container? Or how to create a key container with a personalized key?

Thanks in advance
Best regards

Fabien



Relevant Pages

  • RE: Using the Public Key embedded in the Assembly?
    ... ImportCspBlob method on RSACryptoServiceProvider, ... CspParameters object that specifies the key container name you installed ... Using the Public Key embedded in the Assembly? ... The license file is unique to each ...
    (microsoft.public.dotnet.security)
  • CryptImportKey Question
    ... I am having trouble attempting to use a public key that I have imported into ... public key if I use the handle that is returned by the CryptImportKey ... the key container and get the public key using the CryptGetUserKey function. ... CryptAcquireContext - opens the key container. ...
    (microsoft.public.platformsdk.security)
  • Re: More CryptImportKey/NTE_BAD_KEY issues
    ... > generate and maintain a selection of keys to be kept within our own keystore ... > for encrypting this data. ... >> key is apparently a public key that correspond to private key stored on ... >> computer A in a key container that you are opening with CryptAcquireContext ...
    (microsoft.public.platformsdk.security)
  • Private key different; Public key same on Different Machines
    ... marketing and sales people can use to sign license requests. ... Since I'm using the RSA CSP and extracting the public key from the key ... KeyPair.snk" some time back and installed into a machine key container on ... be shared by all assemblies we produce). ...
    (microsoft.public.dotnet.security)
  • Re: Decrypt RSA using D
    ... derrive E and M (the public key), ... that anyone with the public key can encrypt a message, ... owner of the private key can decrypt it. ... always embedded inside the CSP key container and never passed out into the ...
    (microsoft.public.dotnet.framework)