Count - Optional parameter that specified the number of bytes to be read. If this parameter is zero, the whole stream (from current position till the end) is read.

Password - The password to decrypt the private key. If the key is not encrypted, set this parameter to empty string

Return value

0 on success.
PKCS#8 error code otherwise.

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 reached or
when the number of bytes specified in
Count parameter is read.
The private 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.