Discuss this help topic in SecureBlackbox Forum

TElX509Certificate.LoadFromBufferPEM

TElX509Certificate     See also     


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


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

Declaration

[C#]
    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)

[Java]
    int loadFromBufferPEM(byte[] Buffer, String PassPhrase);
    int loadFromBufferPEM(byte[] Buffer, int StartIndex, int Count, 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