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.


    int LoadFromBufferSPC(byte[] Buffer);
    int LoadFromBufferSPC(byte[] Buffer, int StartIndex, int Count);

    Function LoadFromBufferSPC(ByVal Buffer As Byte()) As Integer
    Function LoadFromBufferSPC(ByVal Buffer As Byte(), ByVal StartIndex As Integer, ByVal Count As Integer) As Integer

    function LoadFromBufferSPC(Buffer : pointer; Size : integer) : integer;

    int32_t LoadFromBufferSPC(void * Buffer, int32_t Size);

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


  • Buffer - the buffer from which the certificate is loaded.
  • Size - the size of the buffer from which the data is loaded.
  • StartIndex -
  • Count -

Return value

    0 on success.
    SPC 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 SPC (PKCS#7) format.

See also:     LoadFromBufferAuto     LoadKeyFromBufferPVK     LoadFromBuffer     LoadFromBufferPFX     LoadFromStream     SaveToBuffer    

Discuss this help topic in SecureBlackbox Forum