EldoS
Navigation
Web site
Support
Table Of Contents

Filter: C#  VB.NET  Pascal  ActiveX  DLL 


TElCertificateRequest.LoadKeyFromStreamPEM

TElCertificateRequest     See also    


 

Reads the private key from the stream in PEM format.

 
 

Declaration

[C#]
    void LoadKeyFromStreamPEM(System.IO.Stream Stream, string Passphrase, int Count /* = 0 */);

[VB.NET]
    Sub LoadKeyFromStreamPEM(ByVal Stream As System.IO.Stream, ByVal Passphrase As String ByVal Count As Integer = 0)

[Pascal]
    procedure LoadKeyFromStreamPEM(Stream: TStream; const Passphrase : string; Count : integer = 0);

[VB6]
    not implemented;

[ActiveX]
    not implemented;

[DLL]
    not applicable;
 
 

Parameters

  • Stream - The stream from which the certificate request is 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.
  • Passphrase - the pass phrase to decrypt the certificate data. If certificate is not encrypted, set this parameter to an empty string.
 
 

Return value

    Returns 0 on success, and PEM error code otherwise.

 
 

PEM Error Codes

[.NET] [Pascal] Value Description
PEM_DECODE_RESULT_INVALID_FORMAT 7425 (0x1D01) Buffer doesn't contain a valid PEM sequence
PEM_DECODE_RESULT_INVALID_PASSPHRASE 7426 (0x1D02) A non-valid passphrase was specified
PEM_DECODE_RESULT_NOT_ENOUGH_SPACE 7427 (0x1D03) There is no enough space to write encoded/decoded data
PEM_DECODE_RESULT_UNKNOWN_CIPHER 7428 (0x1D04) The message was encrypted using unknown cipher
Declared in
[.NET] [Pascal]
Namespace: SBPEM
Assembly: SecureBlackbox
Unit: SBPEM

 
 

Description

    Use this method to load a private key to be used for request regeneration from stream in PEM format.

 
 

See also:     LoadKeyFromBuffer     LoadKeyFromBufferPEM     LoadKeyFromStream     KeyMaterial    

 
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2012, EldoS Corporation