Skip to Content
C# 7.0 核心技术指南(原书第7版)
book

C# 7.0 核心技术指南(原书第7版)

by Joseph Albahari, Ben Albahari
August 2019
Intermediate to advanced
1074 pages
24h 28m
Chinese
China Machine Press
Content preview from C# 7.0 核心技术指南(原书第7版)
756
18
18.4.1.2 利用 signtool.exe 进行签名
Visual Studio 附带的 signtool.exe 工具可对程序进行认证代码签名。如果在调用时添加
signwizard 标志,则该工具会显示一个用户界面;否则可以使用以下命令行的形式进
行调用:
signtool sign /sha1
(thumbprint) filename
证书的指纹就是在计算机的证书库中展示的证书指纹。如果证书是一个文件,则可以利
/f 指定文件名,使用 /p 指定密码。例如:
signtool sign /sha1 ff813c473dc93aaca4bac681df472b037fa220b3 LINQPad.exe
也可以使用 /d /du 来提供描述信息或产品的 URL。例如:
...
/d
LINQPad
/du
http://www.linqpad.net
大多数情况下还要指定时间戳服务器。
18.4.1.3 时间戳
在证书过期之后,就不能再对程序进行签名。但是如果在签名时使用 /t 开关指定了时
间戳服务器,那么在过期之前的签名仍然是有效的。CA 还会为此提供一个 URI。以下
就是 Comodo(或 Ksoftware)提供的 URI
...
/t
http://timestamp.comodoca.com/authenticode
18.4.1.4 验证一个程序是否已经被签名
查看文件的认证代码签名最容易的方式是在 Windows 资源管理其中查看文件的属性(在
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

算法技术手册(原书第2 版)

算法技术手册(原书第2 版)

George T.Heineman, Gary Pollice, Stanley Selkow
数字化转型:企业破局的34 个锦囊

数字化转型:企业破局的34 个锦囊

Gary O’Brien, Xiao Guo, Mike Mason

Publisher Resources

ISBN: 9787111631347