Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.LoadFromStreamPFX

TElCustomCertStorage     See also     


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


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

Declaration

[C#]
    int LoadFromStreamPFX(System.IO.Stream Stream, string Password, int Count);

[VB.NET]
    Function LoadFromStreamPFX(ByVal Stream As System.IO.Stream, ByVal Password As String, ByVal Count As Integer) As Integer

[Pascal]
    function LoadFromStreamPFX(Stream: TStream; const Password: string; Count: integer = 0): integer;

[C++]
    int32_t LoadFromStreamPFX(TStream &Stream, const std::string &Password, int32_t Count);
    int32_t LoadFromStreamPFX(TStream *Stream, const std::string &Password, int32_t Count);

[PHP]
    integer LoadFromStreamPFX(TStream $Stream, string $Password, integer $Count)

[Java]
    int loadFromStreamPFX(InputStream Stream, String Password, int Count);
    int loadFromStreamPFX(TElStream Stream, String Password, int Count);

Parameters

  • Stream - The stream from which the certificates are loaded.
  • Count - Optional parameter that specified the number of bytes to be read. If this parameter is zero, the stream from current position till the end is read.
  • Password - Specifies the pass phrase to decrypt the certificates data. If certificates are not encrypted, set this parameter to empty string.

Return value

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

PKCS12 Error codes

Description

    Use this method to load certificates in PFX format from the stream. PFX format supports storing of private keys.

See also:     LoadFromBufferPFX     SaveToBufferPFX     SaveToStreamPFX    

Discuss this help topic in SecureBlackbox Forum