Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

PrivateKeyInfo.Load Method

Namespace: Rebex.Security.Cryptography.Pkcs
Assembly: Rebex.Common.dll (version 7.0.9147)

Load(Stream, String)

Loads a PKCS #8, PuTTY or SSLeay (OpenSSL/OpenSSH) format private key from a stream. Upon successful decoding, information can be retrieved using PrivateKeyInfo methods and properties.

Declaration
public void Load(Stream input, string password)
Parameters
Type Name Description
Stream input

A stream from which to load the private key.

String password

Password used to encrypt the private key, or null if no password needed.

Load(Stream, Byte[])

Loads a PKCS #8, PuTTY or SSLeay (OpenSSL/OpenSSH) format private key from a stream. Upon successful decoding, information can be retrieved using PrivateKeyInfo methods and properties.

Declaration
protected void Load(Stream input, byte[] password)
Parameters
Type Name Description
Stream input

A stream from which to load the private key.

Byte[] password

Password used to encrypt the private key, or null if no password needed.

Load(String, String)

Loads a PKCS #8, PuTTY or SSLeay (OpenSSL/OpenSSH) format private key from a stream. Upon successful decoding, information can be retrieved using PrivateKeyInfo methods and properties.

Declaration
public void Load(string fileName, string password)
Parameters
Type Name Description
String fileName

A file from which to load the private key.

String password

Password used to encrypt the private key, or null if no password needed.

In This Article
  • Load(Stream, String)
  • Load(Stream, Byte[])
  • Load(String, String)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies