software packing with NullSoft Install Shield and MicroSoft certification

Posted on Updated on

Steps

  1. install MSVS or Authenticode SDK
  2. write down the scripts in a batch file( cert.bat for example)
  3. set TimeURL=http://timestamp.verisign.com/scripts/timstamp.dll
    echo making certification …
    “C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\makecert.exe" -n CN=test.com -sv test.pvk test.cer
    echo converting certification files …
    “C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\cert2spc.exe" test.cer test.spc
    “C:\Program Files\Microsoft Visual Studio 8\Common7\Tools\Bin\pvk2pfx.exe" -pvk test.pvk -spc test.spc -pfx test.pfx -f
    echo signing test.cab …
    “C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin\signtool.exe" sign /f test.pfx /t %TimeURL% /v test.cab

    p.s.: This could only generate a test digital signature
    if you want to generate an enterprise CA of your company by IIS. please refers to the 3rd item of the following eferences :

Reference:

  1. Microsoft Authenticode Technology
  2. Packaging ActiveX
  3. Sign Code
  4. 在Web Server上設置安全的SSL
廣告

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s