[英]Signing file with detached signature
I'm trying to make detached signature for doc, xml etc. files. 我正在尝试为doc,xml等文件制作独立签名。 I was started at example from Microsoft website ( example ).
我是从Microsoft网站上的example开始的( example )。 But even that simple example isn't working for me.
但是,即使是这个简单的例子也对我不起作用。 Every time I get "Can not recognize the URI...".
每次我收到“无法识别URI ...”。 I was also tryied to set reference to @"file://c://1.xml" etc. but no success.
我也尝试设置对@“ file:// c://1.xml”等的引用,但没有成功。
After a security update in March 2016, external signatures are disabled by default. 在2016年3月进行安全更新后,默认情况下将禁用外部签名。
You can enable it by setting a registry value: 您可以通过设置注册表值来启用它:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\Security@SignedXmlAllowDetachedSignature=1
See more in MS Knowledge Base 在MS知识库中查看更多
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.