Re: remove private key
From: Shawn Corey [MSFT] (shawncor_at_online.microsoft.com)
Date: 01/30/04
- Next message: andrew: "Re: Signing CSP and Certification Authority"
- Previous message: Vishal Agarwal[MSFT]: "Re: Key archival and smartcard CSP"
- In reply to: flor_lai: "remove private key"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 30 Jan 2004 11:09:52 -0800
Depending on what order you are doing things a couple of problems may arise.
If you are deleting the cert from the store before you delete the private
key, by using oCertificate.PrivateKey.Delete, then the oCertificate object
may have the flag saying that a private key is available but the info on
where that key is may be deleted with the cert. Another possibility is that
the cert you are using is a copy of another cert and the properties for that
cert contained info pointing to a key that no longer exists. From what you
said it seems most likely that the key that the certificates properties are
pointing to no longer exists.
If you remove a cert from a store then leaving the private key behind is not
a huge deal, there are several apps I have seen that do this. The key will
still be protected in the same way it was before the cert was deleted and
there is no info in the key that says what cert that key belonged to, that
info is all in the certificate properties in the store. For added security
it is recommended to remove the key, this is best done just before you
delete the cert form the store.
Keysets are the public private key pairs. The public key is stored in the
cert and the private key is stored in either a file or the registry
depending on the version of windows you use, and is in a different
folder/registry location for each user.
-- This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm "flor_lai" <flor_lai@yahoo.com> wrote in message news:u25W2715DHA.2064@TK2MSFTNGP11.phx.gbl... > I can sucessful to remove cert record in certificate store(personal folder). > Thx > but I have question on Privatekey. > > In the cert detail, it return "True" for oCertificate.HasPrivateKey(). > So, I just try to execute oCertificate.PrivateKey.Delete > But return "error '80090016' Keyset does not exist" > > How to cause the problem? How to solve it ? > > If I remove the Cert is store, is it necessary to remove PrivateKey? > Where and what is Keyset? > > Thx > >
- Next message: andrew: "Re: Signing CSP and Certification Authority"
- Previous message: Vishal Agarwal[MSFT]: "Re: Key archival and smartcard CSP"
- In reply to: flor_lai: "remove private key"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|