Discuss this help topic in SecureBlackbox Forum

TElX509Certificate.LoadFromBufferPFX

TElX509Certificate     See also     


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


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

Declaration

[C#]
    int LoadFromBufferPFX(byte[] Buffer, string Password);
    int LoadFromBufferPFX(byte[] Buffer, int StartIndex, int Count, string Password);

[VB.NET]
    Function LoadFromBufferPFX(ByVal Buffer As Byte(), ByVal Password As String) As Integer
    Function LoadFromBufferPFX(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Count As Integer, ByVal Password As String) As Integer

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

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

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

[Java]
    int loadFromBufferPFX(byte[] Buffer, String Password);
    int loadFromBufferPFX(byte[] Buffer, int StartIndex, int Count, String Password);

Parameters

  • 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.
  • StartIndex -
  • Count -

Return value

    0 on success.
    PKCS12 error code otherwise.

Description

    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