Méthode | Description | |
---|---|---|
CryptAcquireCertificatePrivateKey ( |
Obtains the private key for a certificate. This function is used to obtain access to a user's private key when the user's certificate is available, but the handle of the user's key container is not available. This function can only be used by the owner of a private key and not by any other user. If a CSP handle and the key container containing a user's private key are available, the CryptGetUserKey function should be used instead.
|
Méthode | Description | |
---|---|---|
CertCloseStore ( |
||
CertGetCertificateContextProperty ( |
||
CryptAcquireCertificatePrivateKey ( |
||
PFXImportCertStore ( CRYPT_DATA_BLOB &pPFX, string szPassword, PFXImportCertStoreFlags dwFlags ) : SafeCertStoreHandle |
public static CryptAcquireCertificatePrivateKey ( |
||
pCert | The address of a CERT_CONTEXT structure that contains the certificate context for which a private key will be obtained. | |
dwFlags | CryptAcquireCertificatePrivateKeyFlags | A set of flags that modify the behavior of this function. This can be zero or a combination of one or more of |
pvParameters |
/// If the |
|
cryptHandle | /// Receives a safe handle to either CNG key handle of type NCRYPT_KEY_HANDLE or CryptoAPI provider handle of type HCRYPTPROV. /// | |
Résultat | bool |