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);
@property (nonatomic,readwrite,assign,getter=certKeyPassword,setter=setCertKeyPassword:) NSString* certKeyPassword;
- (NSString*)certKeyPassword;
- (void)setCertKeyPassword:(NSString*)newCertKeyPassword;
#define PID_CERTMGR_CERTKEYPASSWORD 7

IPWORKSSNMP_EXTERNAL void* IPWORKSSNMP_CALL IPWorksSNMP_CertMgr_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSSNMP_EXTERNAL int IPWORKSSNMP_CALL IPWorksSNMP_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) 2022 /n software inc. - All rights reserved.
IPWorks SNMP 2020 C++ Edition - Version 20.0 [Build 8202]