Can sn.exe utilize the Windows certificate store?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance





For signing an assembly with sn.exe in .NET, is it possible to specify a public key for which the private key is contained only within the Windows CryptoAPI keystore?

I see the option for specifying the CSP name, and the container name.

Are there values to use to access the Windows certificates? (i.e. those accessible from Windows EFS, Outlook, Internet Explorer, etc.)

Specifically, I am asking this because there are a few keys which do not have the private key marked as exportable, so I cannot export a .pfx and follow that route.

Thank you.


I found the MSDN article on Machine Stores, but this is dealing with ActiveDirectory Rights Management. I also cannot find the DRM directory it talks about. Though, there was a directory Application Data\Microsoft\Crypto\RSA\MachineKeys, and several files named with just a serial number or GUID. (256bit-hex)_(32bit)-(16bit)-(16bit)-(16-bit)-(48bit) is the format of the filename. Are these usable/addressable to identify the public key to sn.exe? I suspect this is not what I am looking for...


-- Maxwell
.



Relevant Pages

  • Re: Using the Public Key embedded in the Assembly?
    ... amongst them a keyblob parser. ... well that the keypair I retrieve from the container is not the same as the ... > approach you've been trying to get the private key out of the CSP is not ... >> the digest) with your public key, ...
    (microsoft.public.dotnet.security)
  • Re: Setting up a secure shell server
    ... > implementation because they have both the Windows and the Unix side. ... connect (rather than the public key auth method). ... if someone manages to steal your private key you're in trouble... ...
    (Focus-Linux)
  • Re: Drawing on DC
    ... can you finally say me about a good guide to Windows ... for drawing in OnMouseMove is that the mouse is captured and the window ... The strokes are going into the container where it counts. ...
    (microsoft.public.vc.mfc)
  • Re: CryptoAPI v.s. SSL3.0/TSL 1.0
    ... Windows 2000, for example, which does not support that blob type. ... "Bong G. Valdoz Jr." ... Get a handle to the container of the server DH ... Export the client's public key in a PUBLICKEYBLOB ...
    (microsoft.public.platformsdk.security)
  • Re: Gotta love them
    ... I thought the only time there was anticipated to be poison gas was ... during the Gulf Wars and even then it was only suspected and never ... container and put everything in the "safe room". ...
    (soc.culture.jewish.moderated)