Re: Certificate added to the local machine store is implicitly added t
- From: "Innokentiy Ivanov" <ivanov@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 6 Jun 2009 23:40:50 +0300
Hello Laszlo,
Thanks for your answer.
It was a bit strange to find this stuff work in such way. First, this
behaviour is not documented anywhere. MSDN states that local machine and
current user stores are independent and are kept in different registry
branches. Second, it is hard to imagine whether the user who has no access
to HKLM will be able to access common certificates contained in local
machine stores. The third, and the worst, is that this rule does not affect
the predefined system stores (at least, the Personal, or "MY", one). One can
import certificates to MY store under local machine account without having
them added to the current user MY store.
With best wishes,
Innokentiy Ivanov
"lelteto" <lelteto@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C39B6B54-8C7B-4DA0-A56E-3101F4C6D384@xxxxxxxxxxxxxxxx
Think about it as "what's available for this user". Both the user's stuff
and
the "everybodY" stuff is available.
This is similar how the Start Menu works: If you add a shortcut to "All
Users" the same shortcut will appear to the current user's Start Menu.
So yes, this is by design.
Laszlo Elteto
SafeNet, Inc.
"Innokentiy Ivanov" wrote:
Hello,
Is it possible to import a certificate into the local machine system
store,
having it not implicitly imported to the current user one? I open a local
machine store (my own, not of the predefined ones, such as My or Root)
with
CertOpenStore(), specifying the CERT_SYSTEM_STORE_LOCAL_MACHINE flag.
Then I
import a certificate to it with CertAddEncodedCertificateToStore() call.
However, the certificate becomes available in both local machine and
current
user instances of the store.
MMC exposes the same behaviour when importing certificates to the local
machine instance of the store. Is that by design?
With best wishes,
Innokentiy Ivanov
.
- Follow-Ups:
- References:
- Prev by Date: RE: Certificate added to the local machine store is implicitly added t
- Next by Date: problem with registering a Smart Card CSP
- Previous by thread: RE: Certificate added to the local machine store is implicitly added t
- Next by thread: Re: Certificate added to the local machine store is implicitly added t
- Index(es):
Relevant Pages
|