Discuss this help topic in SecureBlackbox Forum

TElX509Certificate.LoadKeyFromBufferPVK

TElX509Certificate     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Loads the certificate's private key from the memory buffer. The key must be stored in PVK format.

Declaration

[C#/Java]
    int LoadKeyFromBufferPVK([in] byte[] Buffer, [in] string PassPhrase);

[VB.NET]
    Function LoadKeyFromBufferPVK(ByVal Buffer As Byte(), ByVal PassPhrase As String) As Integer

[Pascal]
    function LoadKeyFromBufferPVK(Buffer: pointer; Size : integer; const Password : string) : integer;

[C++]
    int32_t LoadKeyFromBufferPVK(void * Buffer, int32_t Size, const std::string &Password);

[PHP]
    integer LoadKeyFromBufferPVK(TSBPointer|array of byte|string|NULL $Buffer, integer $Size, string $Password)

Parameters

  • Buffer - the buffer from which the key is loaded.
  • Size - the size of the buffer from which the data is loaded.
  • Password - The password to decrypt the private key. If the key is not encrypted, set this parameter to empty string

Return value

    0 - if the key was successfully loaded.
    Otherwise PVK 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 PVK (Microsoft secret) format.

Discuss this help topic in SecureBlackbox Forum