Discuss this help topic in SecureBlackbox Forum

TElX509Certificate.SaveKeyToStreamPKCS8

TElX509Certificate     See also     


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


Saves the private key of the certificate to the stream in PKCS8 format.

Declaration

[C#]
    int SaveKeyToStreamPKCS8(System.IO.Stream Stream, string Password);

[VB.NET]
    Function SaveKeyToStreamPKCS8(ByVal Stream As System.IO.Stream, ByVal Password As String) As Integer

[Pascal]
    function SaveKeyToStreamPKCS8(Stream: TStream; const Password: string): integer;

[C++]
    int32_t SaveKeyToStreamPKCS8(TStream &Stream, const std::string &Password);
    int32_t SaveKeyToStreamPKCS8(TStream *Stream, const std::string &Password);

[PHP]
    integer SaveKeyToStreamPKCS8(TStream $Stream, string $Password)

[Java]
    int saveKeyToStreamPKCS8(OutputStream Stream, String Password);
    int saveKeyToStreamPKCS8(TElStream Stream, String Password);

Parameters

  • Stream - the stream where the key should be saved.
  • Password - the password for encrypting the key.

Description

    This method saves the private key to the provided stream.

See also:     LoadKeyFromBufferPKCS8     LoadKeyFromStreamPKCS8     SaveKeyToStream     SaveKeyToBufferPKCS8    

Discuss this help topic in SecureBlackbox Forum