签名的 Ghostscript Postscript 打印驱动程序

Gam*_*ing 3 windows printing driver postscript ghostscript

我正在使用 Ghostscript ( ) 附带的 Windows postscript 打印驱动程序lib/ghostpdf.inf从打印作业生成 postscript 文件。

但是 postscript 驱动程序没有经过数字签名,因此 Windows 8 和 Windows Server 2012 不允许在不启动进入“允许未签名驱动程序”模式的情况下安装它。

您知道是否有任何签名版本可与最新的 Windows 版本一起使用?

如果情况并非如此,我可以自己编译和签名,但是我无法在http://git.ghostscript.com/ghostpdl.git上提供的 git 存储库中找到 postscript 打印驱动程序的源代码。因为我不熟悉构建驱动程序,所以我可能只是监督它。

有人可以给我一个提示,我可以在哪里找到 postscript 驱动程序文件来自己编译它吗?

编辑: .INF 文件如何告诉 Windows 驱动程序二进制文件所在的位置?我已经研究过“ClassGUID”,但它对于所有驱动程序都是相同的,并且注册表项说明了有关C:\Windows\System32\ntprint.dll. 我认为这对于这个问题来说并不重要,是吗?

Gam*_*ing 5

要签署“ghostscript 驱动程序”,您只需签署 Ghostscript 附带的 INF 文件即可。

technet 上有一篇文章描述了执行此操作所需的步骤。

步骤是:

1) 创建/获取证书
2) 确保您的计算机信任该证书(如果需要,请将其放入您的证书存储中)
3) 下载并安装Windows 驱动程序工具包 (WDK)
4) 将CatalogFile=oemprint.catINF 文件中的 更改为ghostpdf.cat
5) 更改到(也许您需要其他日期,您将DriverVer=01/02/2007,1.0.0.1DriverVer=01/01/2013,1.0.0.1下一步中看到)
6)使用该Inf2Cat工具创建一个 cat 文件(C:\Program Files (x86)\Windows Kits\8.0\bin\x86对我来说是 at):

注意
使用cmd.exe而不是powershell,因为powershellParameter format not correct.总是给出错误

命令:

inf2cat.exe /driver:c:\path\to\folder\whereCatFileIsIn /os:7_X86,7_X64,8_X86,8_X64[,other OS you'd like to support]
Run Code Online (Sandbox Code Playgroud)

signtool7)使用(与Inf2Cat工具相同的目录)对cat文件进行签名

命令:

SignTool.exe sign /f "C:Path\to\my.pfx" /t http://timestamp.verisign.com/scripts/timestamp.dll "C:\Path\To\ghostpdf.cat"
Run Code Online (Sandbox Code Playgroud)

(有关可用参数的更多信息,请参阅signtool文档)