Net6 has method System.Security.Cryptography.Pkcs.SignedCms.RemoveCertificate(X509Certificate2 certificate) https://learn.microsoft.com/en-us/dotnet/api/system.security.cryptography.pkcs.signedcms.removecertificate?view=dotnet-plat-ext-8.0&viewFallbackFrom=net-6.0
Please tell me if it’s realistic, if there is a way (or maybe even an implementation) of a similar method in NetFramwork 4.7 or higher in class System.Security.Cryptography.Pkcs.SignedCms ?
By task, it is necessary to remove the certificate data from the signature. Only here’s, how, when there is no method.