Re: CryptoAPI migration from WinNT to Win2003 server

From: Michel Gallant (neutron_at_istar.ca)
Date: 01/26/05


Date: Wed, 26 Jan 2005 12:12:54 -0500

If you have .NET runtime installed, here is a keycontainer utility
which might help:
   http://www.jensign.com/JavaScience/dotnet/keypal

- Mitch Gallant
   MVP Security

"CryptoAPI migration from WinNT to Win200" <CryptoAPI migration from WinNT to Win200@discussions.microsoft.com> wrote in message
news:D4FB2ADE-5F38-42B4-8D82-34A38FADFFC5@microsoft.com...
> Hello-
>
> Can anyone help me to understand how to enumerate through the key containers
> (for specific profiles) on a windows 2003 server?
>
> CryptAquireContext does grab the active key container, but if the system has
> multiple key containers for a particular user profile I am not seeing the
> solution to knowing/grabbing all the key containers? Where this would be
> benifical for me is for say the export process where I want to export
> multiple key containers to another system.
>
> There is a longer explination below if anyone is interested in greater
> detail of what I am trying to do.
>
> Any suggestions or help for things to look at for this software migrations
> would be greatly appreciated.
> Thanks
> ***************
>
> I currently am trying to migrate a program written durning the Windows NT
> 4.0 days to windows 2003 server. This program implements the CryptoAPI and
> WinReg api.
>
> Basically, the issue revolves around accessing the key containers on the
> system the application is installed on. For WinNT 4.0 the storage of the key
> containers was in the registry. So the program would enumerate through the
> registry space grabbing the key containers (ie in an export).
>
> Obviously, the key containers are stored in a different location (profile
> based on the file system) in the newer OS'es. It seems all the cryptoAPI
> calls still function correclty. My issue resides in the fact that I need to
> change how the cryptoAPI accesses the key containers (since the change was in
> registry access).
>