Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.LoadFromBufferPFX

TElCustomCertStorage     See also     


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


Use this method to load multiple certificates stored in PFX (PKCS12) format.

Declaration

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

[VB.NET]
    Function LoadFromBufferPFX(ByVal Buffer As Byte(), 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);

Parameters

  • Buffer - Buffer with PKCS12 data
  • Size - Size of Buffer in bytes
  • Password - Password to decrypt certificates

Return value

    0 if certificates were successfully loaded.
    PKCS12 error code otherwise.

PKCS12 Error codes

Description

    Use this method to load certificates which are stored in PFX format. PFX format supports storing of private keys.

See also:     LoadFromStreamPFX     SaveToBufferPFX     SaveToStreamPFX    

Discuss this help topic in SecureBlackbox Forum