I'm sending the smart card certificate from the user store into the constructor for CmsSigner and i get an error saying context was acquired as silent. Any ideas??
I'm trying to sign PKCS encryption using a smart card.
ContentInfo contentInfo = newContentInfo(msg);
SignedCms signedCms = newSignedCms(contentInfo,false);
CmsSigner cmsSigner = newCmsSigner(signerCert);
cmsSigner.IncludeOption =
X509IncludeOption.EndCertOnly;
cmsSigner.SignedAttributes.Add(newPkcs9SigningTime());
signedCms.ComputeSignature(cmsSigner);