Discuss this help topic in SecureBlackbox Forum

TElCertificateRequest.SaveKeyToStreamPEM

TElCertificateRequest     See also     


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


Saves the private key of the Certificate Request to the stream in PEM format.

Declaration

[C#]
    void SaveKeyToStreamPEM(System.IO.Stream Stream, string Passphrase);
    void SaveKeyToStreamPEM(System.IO.Stream Stream, int EncryptionAlgorithm, TSBSymmetricCryptoMode EncryptionMode, string Passphrase);

[VB.NET]
    Sub SaveKeyToStreamPEM(ByVal Stream As System.IO.Stream, ByVal Passphrase As String)
    Sub SaveKeyToStreamPEM(ByVal Stream As System.IO.Stream, ByVal EncryptionAlgorithm As Integer, ByVal EncryptionMode As TSBSymmetricCryptoMode, ByVal Passphrase As String)

[Pascal]
    procedure SaveKeyToStreamPEM(Stream: TStream; const Passphrase: string);

[C++]
    void SaveKeyToStreamPEM(TStream &Stream, const std::string &Passphrase);
    void SaveKeyToStreamPEM(TStream *Stream, const std::string &Passphrase);
    void SaveKeyToStreamPEM(TStream &Stream, int32_t EncryptionAlgorithm, TSBSymmetricCryptoMode EncryptionMode, const std::string &Passphrase);
    void SaveKeyToStreamPEM(TStream *Stream, int32_t EncryptionAlgorithm, TSBSymmetricCryptoMode EncryptionMode, const std::string &Passphrase);

[PHP]
    void SaveKeyToStreamPEM(TStream $Stream, string $Passphrase)
    void SaveKeyToStreamPEM(TStream $Stream, integer $EncryptionAlgorithm, integer $EncryptionMode, string $Passphrase)

[Java]
    void saveKeyToStreamPEM(OutputStream Stream, String Passphrase);
    void saveKeyToStreamPEM(OutputStream Stream, int EncryptionAlgorithm, TSBSymmetricCryptoMode EncryptionMode, String Passphrase);
    void saveKeyToStreamPEM(TElStream Stream, String Passphrase);
    void saveKeyToStreamPEM(TElStream Stream, int EncryptionAlgorithm, TSBSymmetricCryptoMode EncryptionMode, String Passphrase);

Parameters

  • Stream - the stream to which the private key is saved
  • PassPhrase - the pass phrase to encrypt the key. If the key shouldn't be encrypted, set this parameter to empty string
  • EncryptionAlgorithm - ...
  • EncryptionMode - ...

TSBSymmetricCryptoMode values

Description

    This method saves the private key to the provided stream.

See also:     SaveKeyToStream     SaveKeyToBufferPEM    

Discuss this help topic in SecureBlackbox Forum