diff --git a/nanoFramework.System.Net/Properties/AssemblyInfo.cs b/nanoFramework.System.Net/Properties/AssemblyInfo.cs
index 4b80865..f0a0e86 100644
--- a/nanoFramework.System.Net/Properties/AssemblyInfo.cs
+++ b/nanoFramework.System.Net/Properties/AssemblyInfo.cs
@@ -16,7 +16,7 @@
////////////////////////////////////////////////////////////////
// update this whenever the native assembly signature changes //
-[assembly: AssemblyNativeVersion("100.2.0.11")]
+[assembly: AssemblyNativeVersion("100.2.0.12")]
////////////////////////////////////////////////////////////////
// Setting ComVisible to false makes the types in this assembly not visible
diff --git a/nanoFramework.System.Net/Security/CertificateManager.cs b/nanoFramework.System.Net/Security/CertificateManager.cs
index c82707f..d86b255 100644
--- a/nanoFramework.System.Net/Security/CertificateManager.cs
+++ b/nanoFramework.System.Net/Security/CertificateManager.cs
@@ -74,5 +74,27 @@ public static bool AddCaCertificateBundle(string ca)
///
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern bool AddCaCertificateBundle(byte[] ca);
+
+ ///
+ /// Loads the device public key from the device certificate store.
+ /// If public key was found, initializes a new instance of the .
+ ///
+ /// The certificate that was loaded from the certificate store.
+ ///
+ /// This method is exclusive of nanoFramework. There is no equivalent in .NET framework.
+ ///
+ public static X509Certificate GetDevicePublicKey()
+ {
+ byte[] certificate = GetDevicePublicKeyRaw();
+ if (certificate is not null)
+ {
+ return new X509Certificate(certificate);
+ }
+
+ return null;
+ }
+
+ [MethodImpl(MethodImplOptions.InternalCall)]
+ private static extern byte[] GetDevicePublicKeyRaw();
}
}
diff --git a/version.json b/version.json
index b198896..9982dab 100644
--- a/version.json
+++ b/version.json
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
- "version": "1.11",
+ "version": "1.12",
"assemblyVersion": {
"precision": "build"
},