Discuss this help topic in SecureBlackbox Forum

TElCustomCertStorage.SaveToStreamPEM

TElCustomCertStorage     See also     


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


Writes certificates to the stream in PEM format.

Declaration

[C#/Java]
    bool SaveToStreamPEM(System.IO.Stream Stream, string Password);
    bool SaveToStreamPEM(System.IO.Stream Stream, string Password, int EncryptionAlgorithm, TSBSymmetricCryptoMode EncryptionMode);

[VB.NET]
    Function SaveToStreamPEM(ByVal Stream As System.IO.Stream, ByVal Password As String) As Boolean
    Function SaveToStreamPEM(ByVal Stream As System.IO.Stream, ByVal Password As String, ByVal EncryptionAlgorithm As Integer, ByVal EncryptionMode As TSBSymmetricCryptoMode) As Boolean

[Pascal]
    function SaveToStreamPEM(Stream : TStream; const Password : string) : boolean;
    function SaveToStreamPEM(Stream : TStream; const Password : string; EncryptionAlgorithm : integer; EncryptionMode : TSBSymmetricCryptoMode) : boolean;

[C++]
    bool SaveToStreamPEM(TStream &Stream, const std::string &Password);
    bool SaveToStreamPEM(TStream *Stream, const std::string &Password);
    bool SaveToStreamPEM(TStream &Stream, const std::string &Password, int32_t EncryptionAlgorithm, TSBSymmetricCryptoMode EncryptionMode);
    bool SaveToStreamPEM(TStream *Stream, const std::string &Password, int32_t EncryptionAlgorithm, TSBSymmetricCryptoMode EncryptionMode);

[PHP]
    bool SaveToStreamPEM(TStream $Stream, string $Password)
    bool SaveToStreamPEM(TStream $Stream, string $Password, integer $EncryptionAlgorithm, integer $EncryptionMode)

Parameters

  • Stream - the stream where the certificates should be saved.
  • Password - the password to encrypt the certificates. If no encryption is required, provide an empty string.
  • EncryptionAlgorithm - specifies the encryption algorithm.
  • EncryptionMode - specifies the encryption mode.

Possible modes:

Possible algorithms:


Return value

    Returns True on success, and False otherwise.

Description

    Use this method to save certificates in PEM format.

See also:     LoadFromStreamPEM     LoadFromBufferPEM     SaveToBufferPEM    

Discuss this help topic in SecureBlackbox Forum