2using System.Reflection;
3using System.Security.Cryptography.X509Certificates;
31 public static X509Certificate2
LoadCertificate(
string ResourceName, Assembly Assembly)
43 public static X509Certificate2
LoadCertificate(
string ResourceName,
string Password)
56 public static X509Certificate2
LoadCertificate(
string ResourceName,
string Password, Assembly Assembly)
58 byte[] Data = Runtime.IO.Resources.LoadResource(ResourceName, Assembly);
60 return new X509Certificate2(Data);
62 return new X509Certificate2(Data, Password);
Static class managing certificate resources.
static X509Certificate2 LoadCertificate(string ResourceName, string Password)
Loads a certificate from an embedded resource.
static X509Certificate2 LoadCertificate(string ResourceName, Assembly Assembly)
Loads a certificate from an embedded resource.
static X509Certificate2 LoadCertificate(string ResourceName, string Password, Assembly Assembly)
Loads a certificate from an embedded resource.
static X509Certificate2 LoadCertificate(string ResourceName)
Loads a certificate from an embedded resource.
Static class that dynamically manages types and interfaces available in the runtime environment.
static Assembly GetAssemblyForResource(string ResourceName)
Gets the assembly corresponding to a given resource name.