Here's the code to create a digital signature:
ContentInfo contentInfo = new ContentInfo(msg);
SignedCms signedCms = new SignedCms(contentInfo);
CmsSigner cmsSigner = new CmsSigner(signerCert);
signedCms.ComputeSignature(cmsSigner, false);
How can I get a list of algorithms supported by the certificate? And how to create a digital signature using the specified algorithm from list?
Here are some examples of screenshots of one of the proprietary software designed to create a digital signature:
List of algorithms from first Certificate:
List of algorithms from second Certificate: