Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions nanoFramework.System.Net/X509Certificates/X509Certificate2.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,18 @@ public bool HasPrivateKey
}
}

/// <summary>
/// Gets the private key, null if no private key
/// </summary>
/// <remarks>This will give you access directly to the raw decoded byte array of the private key</remarks>
public byte[] PrivateKey => _privateKey;

/// <summary>
/// Gets the public key
/// </summary>
/// <remarks>This will give you access directly to the raw decoded byte array of the public key</remarks>
public byte[] PublicKey => RawData;

/// <summary>
/// Gets the date in local time after which a certificate is no longer valid.
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.6.5-preview.{height}",
"version": "1.7.0-preview.{height}",
"assemblyVersion": {
"precision": "revision"
},
Expand Down