Discuss this help topic in SecureBlackbox Forum
TElX509Certificate.LoadKeyFromBufferNET
Loads the certificate's private key from the memory buffer. The key must be stored in NET format.
Declaration
Parameters
Return value
0 - if the key was successfully loaded.
Otherwise PKCS#8 error code.
Description
This method attempts to read the certificate's private key from the provided memory location of the given size. The key must have been saved in NET format. NET format was invented by Microsoft Corp. and is based on PKCS#8 private key format. However, it is not fully compatible with PKCS#8, so passing a buffer with raw PKCS#8 data will cause an 'invalid format' error.