Discuss this help topic in SecureBlackbox Forum


TElCertificateRequest     See also     

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

Detects format of the input data


    static int DetectCertReqFileFormat(string FileName);
    static int DetectCertReqFileFormat(System.IO.Stream Stream);

    Shared Function DetectCertReqFileFormat(ByVal FileName As String) As Integer
    Shared Function DetectCertReqFileFormat(ByVal Stream As System.IO.Stream) As Integer

    class function DetectCertReqFileFormat(const FileName : string) : TSBCertReqFileFormat;
    class function DetectCertReqFileFormat(Stream : TStream) : TSBCertReqFileFormat;

    static TSBCertReqFileFormat DetectCertReqFileFormat(const std::string &FileName);
    static TSBCertReqFileFormat DetectCertReqFileFormat(TStream &Stream);
    static TSBCertReqFileFormat DetectCertReqFileFormat(TStream *Stream);

    integer DetectCertReqFileFormat(string $FileName)
    integer DetectCertReqFileFormat(TStream $Stream)


  • FileName -
  • Stream -
  • Data -

Return value

    Returns the file format.

Possible values:


Use this method to detect, in which format the input data is stored. The format can be binary, text (PEM) or undefined in case the data is not a Certificate Request.

Discuss this help topic in SecureBlackbox Forum