好友
阅读权限10
听众
最后登录1970-1-1
|
25吾爱币
本帖最后由 liushaojiang 于 2024-4-30 07:18 编辑
近期,电脑安装了Microsoft .NET Runtime -6.0.29,结果发现原来使用的PDF批量盖章在数字签名功能无法正常使用了,提示以下错误信息:
“System.Security.Cryptography.CryptographicException: 不支持请求的操作。
在System.Security.Cryptography.NCryptNative.ExportKey(SafeNCryptKeyHandle key, String format)在System.Security.Cryptography.CngKey.Export(CngKeyBlobFormatformat)
在System,Security.Cryptography.RSACng.ExportParameters(BooleanincludePrivateParameters)
在Org.BouncyCastle.Security.DotNetUtilities.GetKeyPair(AsymmetricAlgorithm privatekey)在PDFQFZ.Form1.PDFWatermark(String inputfilepath, Stringoutputhilepath, X509Certificate2 cert)”
iTextSharp.text.DocumentException: Signature defined. Must be closed inPdfSignatureAppearance.
在iTextSharp.text.pdf.PdfStamper.Close()在PDFQFZ.Form1.PDFWatermark(String inputfilepath, Stringoutputhilepath,x509Certificate2 cert)在 PDFQFZ.Form1.pdfGz(Single sfsize)
后来通过搜索咨询,PDF盖章工具是基于.net4.8环境下的,我的电脑系统是WIN11x64,想请教坛里的大佬们,这种问题有好的解决办法吗?我偿试过,将.net6.0删除后,PDF盖章的数字签名功能是能正常使用的。 |
|
发帖前要善用【论坛搜索】功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。 |
|
|
|
|