Discuss this help topic in SecureBlackbox Forum
TElX509Certificate.LoadKeyFromStreamMS
Loads the certificate's private key from the stream in form compatible with CryptoAPI PRIVATEKEYBLOB format.
Declaration
Parameters
Return value
0 - if the key was successfully loaded.
Otherwise MS error code.
Description
Use this method to read the certificate's private key from the stream. The read operation is started at current stream position and finished when the end of the stream is reached or when the number of bytes specified in Count parameter is read. The private key must have been saved in PRIVATEKEYBLOB format compatible with CryptoAPI