Discuss this help topic in SecureBlackbox Forum

TElX509Certificate.LoadFromFileAuto

TElX509Certificate     See also     


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


Loads the certificate from file.

Declaration

[C#/Java]
    int LoadFromFileAuto(string Filename, string Password);

[VB.NET]
    Function LoadFromFileAuto(ByVal Filename As String, ByVal Password As String) As Integer

[Pascal]
    function LoadFromFileAuto(const Filename : string; const Password : string) : integer;

[C++]
    int32_t LoadFromFileAuto(const std::string &Filename, const std::string &Password);

[PHP]
    integer LoadFromFileAuto(string $Filename, string $Password)

Parameters

  • Filename - name of the file containing certificate
  • Password - password to access the certificate

Return value

    0 on success.
    Error code otherwise.
    If the format of the certificate is not recognized, SB_X509_ERROR_UNRECOGNIZED_FORMAT (0x5009) error is reported.

Description

    This method attempts to read the certificate from the file. It recognizes the format automatically; if the format is not recognized, SB_X509_ERROR_UNRECOGNIZED_FORMAT (0x5009) error is reported. The supported formats are DER, PEM, PFX, SPC.

See also:     LoadFromBufferAuto     LoadFromStreamAuto    

Discuss this help topic in SecureBlackbox Forum