IPWorks S/MIME 2020 C++ Edition

Questions / Feedback?

CertKeyPassword Property

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


ANSI (Cross Platform)
char* GetCertKeyPassword();
int SetCertKeyPassword(const char* lpszCertKeyPassword); Unicode (Windows) LPWSTR GetCertKeyPassword();
INT SetCertKeyPassword(LPCWSTR lpszCertKeyPassword);
@property (nonatomic,readwrite,assign,getter=certKeyPassword,setter=setCertKeyPassword:) NSString* certKeyPassword;
- (NSString*)certKeyPassword;
- (void)setCertKeyPassword:(NSString*)newCertKeyPassword;

IPWORKSSMIME_EXTERNAL void* IPWORKSSMIME_CALL IPWorksSMIME_CertMgr_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSSMIME_EXTERNAL int IPWORKSSMIME_CALL IPWorksSMIME_CertMgr_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value



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


Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks S/MIME 2020 C++ Edition - Version 20.0 [Build 8161]