Discuss this help topic in SecureBlackbox Forum
TElX509Certificate.SaveKeyToBufferMS
Saves the private key of the certificate to the memory buffer in form compatible with CryptoAPI PRIVATEKEYBLOB format.
Declaration
Parameters
Return value
0 - if the key was successfully saved.
Otherwise MS error code.
Description
This method saves the private key to the provided memory location of the given size. If the buffer is too small (or empty), Size parameter is set to the size which will be enough to hold the whole data.