CertificateSignatureAlgorithm Property
Gets the information about cryptographic algorithm used to sign the certificate.

Namespace: MailBee.Security
Assembly: MailBee.NET (in MailBee.NET.dll) Version: 11.2.0 build 590 for .NET 4.5
public Algorithm SignatureAlgorithm { get; }

Property Value

Type: Algorithm
Object of Algorithm class representing information about the signature algorithm.
This sample loads a certificate from the specified file and displays information about it.
// To use the code below, import MailBee namespace at the top of your code
using MailBee.Security;

// The actual code (put it into a method of your class)
Certificate cert = new Certificate(@"C:\Temp\certificate.cer", CertFileType.Cer, null);

Console.WriteLine("Key algorithm name: " + cert.SignatureAlgorithm.Name);
Console.WriteLine("Key algorithm OID: " + cert.SignatureAlgorithm.Oid);
Console.WriteLine("Key algorithm ID: " + cert.SignatureAlgorithm.ID);
Console.WriteLine("Key algorithm bit length: " + cert.SignatureAlgorithm.BitLength);
See Also