Discuss this help topic in SecureBlackbox Forum
TElX509Certificate.SaveKeyToStreamNET
Saves the private key of the certificate to the stream in NET format.
Declaration
Parameters
Return value
0 - if the key was successfully saved.
Otherwise PKCS#8 error code.
Description
This method saves the private key to the provided stream. The private key will be 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.