Discuss this help topic in SecureBlackbox Forum
TElX509Certificate.SaveKeyToBufferPKCS8
Saves the private key of the certificate to the memory buffer in PKCS8 format.
Declaration
Parameters
Return value
Returns the number of bytes written to the buffer on success, and -1 on failure. If Buffer is too small, the method sets Size to the number of bytes necessary to hold the key data.
Description
This method saves the private key to the provided memory location of the given size. If the buffer is too small, the method sets Size to the number of bytes necessary to hold the key data.