Discuss this help topic in SecureBlackbox Forum

TElX509Certificate.LoadFromBufferPEM

TElX509Certificate     See also     


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


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

Declaration

[C#/Java]
    int LoadFromBufferPEM(byte[] Buffer, string PassPhrase);
    int LoadFromBufferPEM(byte[] Buffer, int StartIndex, int Count, string Passphrase);

[VB.NET]
    Function LoadFromBufferPEM(ByVal Buffer As Byte(), ByVal PassPhrase As String) As Integer
    Function LoadFromBufferPEM(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Count As Integer, ByVal Passphrase As String) As Integer

[Pascal]
    function LoadFromBufferPEM(Buffer: Pointer; Size: integer; PassPhrase : string) : integer;

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

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

Parameters

  • Buffer - the buffer from which the certificate is loaded.
  • Size - the size of the buffer from which the data is loaded.
  • PassPhrase - the pass phrase to decrypt the certificate data. If certificate is not encrypted, set this parameter to empty string.
  • StartIndex -
  • Count -

Return value

    0 on success.
    PEM 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 PEM format. The private key may be contained with the certificate. If it is present, it be loaded too.

See also:     LoadFromBufferAuto     LoadFromBuffer     LoadFromStreamPEM     SaveToBufferPEM    

Discuss this help topic in SecureBlackbox Forum