Discuss this help topic in SecureBlackbox Forum


TElX509Certificate     See also     

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

Loads the certificate from the memory buffer. Buffer should contain certificate in PFX format.


    int LoadFromBufferPFX([in] byte[] Buffer, [in] string Password);

    Function LoadFromBufferPFX(ByVal Buffer As Byte(), ByVal Password As String) As Integer

    function LoadFromBufferPFX(Buffer: Pointer; Size: integer; Password : string) : integer;

    int32_t LoadFromBufferPFX(void * Buffer, int32_t Size, const std::string &Password);

    integer LoadFromBufferPFX(TSBPointer|array of byte|string|NULL $Buffer, integer $Size, string $Password)


  • Buffer - the buffer from which the certificate is loaded.
  • Size - the size of the buffer from which the data is loaded.
  • Password - the password to decrypt the certificate data.

Return value

    0 on success.
    PKCS12 error code otherwise.


    This method attempts to read the certificate from the provided memory location of the given size. The certificate must have been saved in PFX (PKCS12) format. The private key may be contained with the certificate. If it is present, it will be loaded too.
    In case if PFX buffer contains more than one certificate, the first certificate from list would be loaded.

See also:     LoadFromBufferAuto     LoadFromBuffer     LoadFromStreamPFX     SaveToBufferPFX    

Discuss this help topic in SecureBlackbox Forum