Discuss this help topic in SecureBlackbox Forum
TElX509Certificate.LoadKeyFromBufferAuto
Loads the certificate's private key from the memory buffer.
Declaration
Parameters
Return value
0 on success.
Error code otherwise.
If the format of the certificate is not recognized, SB_X509_ERROR_UNRECOGNIZED_FORMAT (0x5009) error is reported.
Description
This method attempts to read the certificate's private key from the provided memory location of the given size. It recognizes the format automatically; if the format is not recognized, SB_X509_ERROR_UNRECOGNIZED_FORMAT (0x5009) error is reported. The supported formats are: DER, PEM, PFX, PVK, NET, PKCS#8.