Why can I silently export private keys marked as non-exportable?
From: Z (zort)
Date: 12/17/03
- Previous message: Mathew: "Re: How to get from PCCERT_CONTEXT to an encoded PKCS #7 blob in memory?"
- Next in thread: Oliver Young: "Re: Why can I silently export private keys marked as non-exportable?"
- Reply: Oliver Young: "Re: Why can I silently export private keys marked as non-exportable?"
- Reply: Valery Pryamikov: "Re: Why can I silently export private keys marked as non-exportable?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 18 Dec 2003 00:10:48 +1300
Hi
I adding a certificate with a private key. During installation I opted to:
a. not allow export of the public key, and
b. require a password to use the certificate
These options appear to be honored within the standard certificate UI. Also
when I sign hashes using the crypto-API I get an OS password prompt at the
appropriate place.
However, it appears that I can silently export the entire certificate,
private key included, using the CertSerializeCertificateStoreElement API
call. I was trying to export only the public information and was somewhat
surprised to be informed that I had the private key on the receiving machine
(determined by viewing the certificate using the OS dialog).
So, my questions are:
1. Is it intended that you can silently export private keys the user said
shouldn't be exported?
2. Why is this behavior designed to be different from what happens when you
copy certificates to another memory store and then serialize the whole
store? (doing this removes the private keys)
3. What is the best method of serializing a single certificate from a store
so you never get the private key? Can it be done in one step? ( as opposed
to using behavior 2. to workaround behavior 1. )
Thanks
Z
- Previous message: Mathew: "Re: How to get from PCCERT_CONTEXT to an encoded PKCS #7 blob in memory?"
- Next in thread: Oliver Young: "Re: Why can I silently export private keys marked as non-exportable?"
- Reply: Oliver Young: "Re: Why can I silently export private keys marked as non-exportable?"
- Reply: Valery Pryamikov: "Re: Why can I silently export private keys marked as non-exportable?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|