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

|| 我最近在这里找到了一篇非常有启发性的文章,关于从Authenticode签名的可执行文件中获取各种信息: 从.NET中的Authenticode签名文件获取时间戳 我管理了如何检索TimeStamp日期属性,但我对原始数据转换了解不多,我认为必须完成将属性从字节数组转换为DateTime对象的操作。 谁能给我一个例子,说明如何在C#中实现这一目标? 谢谢。     
已邀请:
您可以重复使用Mono \的chktrust工具[1]中的代码,该工具使用Mono.Security.dll [2]来解码Authenticode签名,包括时间戳。所有代码都可以在MIT X.11许可下获得。 [1] https://github.com/mono/mono/blob/master/mcs/tools/security/chktrust.cs [2] https://github.com/mono/mono/tree/master/mcs/class/Mono.Security     

要回复问题请先登录注册