Discuss this help topic in SecureBlackbox Forum

TElCertificateRequest.SaveKeyToStreamPEM

TElCertificateRequest     See also     


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


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

Declaration

[C#/Java]
    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)

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