Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何从.NET中的authenticode签名文件中检索和解码时间戳日期属性_C#_.net_Timestamp_Code Signing_Authenticode - Fatal编程技术网

C# 如何从.NET中的authenticode签名文件中检索和解码时间戳日期属性

C# 如何从.NET中的authenticode签名文件中检索和解码时间戳日期属性,c#,.net,timestamp,code-signing,authenticode,C#,.net,Timestamp,Code Signing,Authenticode,我最近在这里发现了一篇内容丰富的文章,介绍了如何从Authenticode签名的可执行文件中获取各种信息: 我设法检索了TimeStamp-date属性,但我对原始数据转换知之甚少,我假设必须将该属性从字节数组转换为DateTime对象 谁能给我举个例子,如何在C#中实现这一点 谢谢。您可以重新使用Mono的chktrust工具[1]中的代码,该工具使用Mono.Security.dll[2]对身份验证码签名(包括时间戳)进行解码。所有代码都在MIT X.11许可证下可用 [1] [2]

我最近在这里发现了一篇内容丰富的文章,介绍了如何从Authenticode签名的可执行文件中获取各种信息:

我设法检索了TimeStamp-date属性,但我对原始数据转换知之甚少,我假设必须将该属性从字节数组转换为DateTime对象

谁能给我举个例子,如何在C#中实现这一点


谢谢。

您可以重新使用Mono的chktrust工具[1]中的代码,该工具使用Mono.Security.dll[2]对身份验证码签名(包括时间戳)进行解码。所有代码都在MIT X.11许可证下可用

[1]

[2]