Discuss this help topic in SecureBlackbox Forum

TElX509Certificate.SaveKeyToStreamPEM

TElX509Certificate     See also     


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


Saves the private key of the certificate 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 SaveKeyToStream(Stream: TStream; 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 TStream (in Pascal case) object to which the private key is saved.
  • PassPhrase - the pass phrase to encrypt the key.
  • EncryptionAlgorithm - ...
  • EncryptionMode - ...

TSBSymmetricCryptoMode values

Description

    This method saves the private key to the provided stream.

Discuss this help topic in SecureBlackbox Forum