VB6 和 .PFX 代码签名 [英] VB6 and .PFX Code Signing

查看:17
本文介绍了VB6 和 .PFX 代码签名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的老板从 Comodo 获得了证书,我一直在努力寻找解决将证书导入 VB6 应用程序的问题的方法.证书本身采用 VB6 格式,我对此类事情几乎一无所知.Comodo 的人非常乐于助人(我的老板说他可以在互联网上找到一些东西.显然他们不知道互联网有多大-.-)

My boss has procured a certificate from Comodo and I've been breaking myself against walls of text trying to find the solution to the problem of getting the certificate into a VB6 application. The certificate itself is in VB6 format and I know like next to nothing about this type of thing. The people at Comodo were just OH so helpful (From my boss, they said he can find something on the internet. Apparently they don't know how big the internet is -.-)

签署项目是否需要将代码放入程序中,还是只是由 MS Authenticode 可执行文件签名的 .exe?

Does signing the project require putting code into the program, or is it just the .exe that gets signed by the MS Authenticode executable files?

有没有人有像白痴一样的分步指南解决方案?

Does anyone have like an idiots step by step guide solution for this?

提前致谢.

推荐答案

这是我们构建脚本的片段

Here is a snippet from our build scripts

set signtool=C:\{cert_path}\signtool.exe sign /f C:\{cert_path}\my_code_sign_current.p12 /p ###### /du "http://mycompany.com" /t "http://timestamp.comodoca.com/authenticode"
%signtool% /d "My Application 1.0" "C:\{binn_path}\App.exe"
%signtool% /d "My Other App 2.0" "C:\{binn_path}\Other.exe"
...

我们使用旧版本的 signtool.exe (6.0.4002.0) 因为我们在使用一些具有较新版本的时间戳服务器时遇到了麻烦 (http://www.startssl.com/timestamp).

We use older version of signtool.exe (6.0.4002.0) because we had troubles using some timestampimg servers with newer versions (http://www.startssl.com/timestamp).

注意:.pfx 和 .p12 文件——这些是相同的 PKCS #12 容器文件,DER 编码

Note: .pfx and .p12 files -- these are the same PKCS #12 container files, DER encoded

这篇关于VB6 和 .PFX 代码签名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆