Method GetRSAPrivateKey
GetRSAPrivateKey(String)
Gets an RSA private key from a PEM file.
Declaration
public static RSAParameters? GetRSAPrivateKey(string path)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | path | The path to the file. |
Returns
| Type | Description |
|---|---|
| System.Nullable<System.Security.Cryptography.RSAParameters> | Null in case of error. |
GetRSAPrivateKey(Byte[])
Gets an RSA private key from a PEM file.
Declaration
public static RSAParameters? GetRSAPrivateKey(byte[] pemFile)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Byte[] | pemFile | The file. |
Returns
| Type | Description |
|---|---|
| System.Nullable<System.Security.Cryptography.RSAParameters> | Null in case of error. |