CertPrivateKeyBytes Property
Contains the certificate's private key.
Syntax
ANSI (Cross Platform) int GetCertPrivateKeyBytes(int iCertIndex, char* &lpCertPrivateKeyBytes, int &lenCertPrivateKeyBytes); Unicode (Windows) INT GetCertPrivateKeyBytes(INT iCertIndex, LPSTR &lpCertPrivateKeyBytes, INT &lenCertPrivateKeyBytes);
- (NSData*)certPrivateKeyBytes:(int)certIndex;
#define PID_CERTIFICATESTORAGE_CERTPRIVATEKEYBYTES 21 SECUREBLACKBOX_EXTERNAL void* SECUREBLACKBOX_CALL SecureBlackbox_CertificateStorage_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); SECUREBLACKBOX_EXTERNAL int SECUREBLACKBOX_CALL SecureBlackbox_CertificateStorage_CheckIndex(void *lpObj, int propid, int arridx);
Remarks
Contains the certificate's private key. It is normal for this property to be empty if the private key is non-exportable.
The CertIndex parameter specifies the index of the item in the array. The size of the array is controlled by the CertCount property.
This property is read-only and not available at design time.
Data Type
Byte Array