UID | title | description | helpviewer_keywords | old-location | tech.root | ms.assetid | ms.date | ms.keywords | req.header | req.include-header | req.target-type | req.target-min-winverclnt | req.target-min-winversvr | req.kmdf-ver | req.umdf-ver | req.ddi-compliance | req.unicode-ansi | req.idl | req.max-support | req.namespace | req.assembly | req.type-library | req.lib | req.dll | req.irql | targetos | req.typenames | req.redist | ms.custom | f1_keywords | dev_langs | topic_type | api_type | api_location | api_name | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NF:certenroll.IX509PrivateKey.Open |
IX509PrivateKey::Open (certenroll.h) |
Opens an existing private key. |
|
security\ix509privatekey_open_method.htm |
security |
965e3bf8-22b9-4015-8fb2-102c5f7b1cb5 |
12/05/2018 |
IX509PrivateKey interface [Security],Open method, IX509PrivateKey.Open, IX509PrivateKey::Open, Open, Open method [Security], Open method [Security],IX509PrivateKey interface, certenroll/IX509PrivateKey::Open, security.ix509privatekey_open_method |
certenroll.h |
Windows |
Windows Vista [desktop apps only] |
Windows Server 2008 [desktop apps only] |
CertEnroll.dll |
Windows |
19H1 |
|
|
|
|
|
|
The Open method opens an existing private key.
If the function succeeds, the function returns S_OK.
If the function fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.
If successful, this method sets the Opened property. You must call either the Open or Create methods before calling the Export method or ExportPublicKey method.
You cannot set the following properties after calling the Open or Create methods. If you wish to specify them, you must do so before calling either of these methods.
- Algorithm
- ContainerName
- ContainerNamePrefix
- CspInformations
- CspStatus
- Description
- Existing
- ExportPolicy
- FriendlyName
- KeyProtection
- KeySpec
- KeyUsage
- LegacyCsp
- Length
- MachineContext
- ProviderName
- ProviderType
- Pin
- ReaderName
- Silent
- UIContextMessage
The following properties can be set regardless of whether the key is open: