IPWorks Bluetooth 2020 C++ Edition

Questions / Feedback?

CertKeyPassword Property

The password for the certificate's private key (if any).

Syntax

ANSI (Cross Platform)
char* GetCertKeyPassword();
int SetCertKeyPassword(const char* lpszCertKeyPassword); Unicode (Windows) LPWSTR GetCertKeyPassword();
INT SetCertKeyPassword(LPCWSTR lpszCertKeyPassword);
#define PID_CERTMGR_CERTKEYPASSWORD 7

IPWORKSBT_EXTERNAL void* IPWORKSBT_CALL IPWorksBT_CertMgr_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSBT_EXTERNAL int IPWORKSBT_CALL IPWorksBT_CertMgr_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

""

Remarks

The password for the certificate's private key (if any).

Some certificate stores may individually protect certificates' private keys, separate from the standard protection offered by the CertStorePassword. CertKeyPassword. This can be used to read such password-protected private keys.

Note: this property defaults to the value of CertStorePassword. To clear it, you must set the property to the empty string (""). It can be set at any time, but must be set before calling CertPrivateKey when the private key's password is different from the store's.

Data Type

String

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks Bluetooth 2020 C++ Edition - Version 20.0 [Build 7941]