LoginSignup
1
2

More than 5 years have passed since last update.

テスト用コード証明書を発行しサインする

Posted at

CA-1.ルート証明書作成

makecert -a sha512 -e 12/31/2099 -cy authority -r -n "CN=testRootCA,O=testRootCA,C=JP,E=foo@example.co.jp" -sv D:\test_rootca.pvk D:\test_rootca.cer

CA-2.デジタル署名作成

makecert -a sha512 -e 12/31/2099 -cy end -n "CN=testInc,O=testInc,C=JP,E=hoge@example.co.jp" -ic D:\test_rootca.cer -iv D:\test_rootca.pvk -sv D:\test.pvk D:\test.cer

DEV-1.ソフトウェア発行元証明書(.spc)作成

cert2spc D:\test.cer D:\test_rootca.cer D:\test.spc

DEV-2.コードサイニング証明書(.pfx)作成

pvk2pfx -pvk D:\test.pvk -spc D:\test.spc -po testpass -pfx D:\test.pfx -f

DEV-3.実行ファイルにコードサイニング証明書(.pfx)を書き込み

signtool sign -f D:\test.pfx -p testpass "d:\your_application_signed.exe"

copy from:
https://vok.paburica.com/index.php?WindowsTips%2F%E5%AE%9F%E8%A1%8C%E3%83%95%E3%82%A1%E3%82%A4%E3%83%AB%E3%81%AB%E3%83%86%E3%82%B9%E3%83%88%E7%9B%AE%E7%9A%84%E3%81%AE%E3%82%B3%E3%83%BC%E3%83%89%E3%82%B5%E3%82%A4%E3%83%8B%E3%83%B3%E3%82%B0%E8%A8%BC%E6%98%8E%E6%9B%B8%E3%82%92%E6%9B%B8%E3%81%8D%E8%BE%BC%E3%81%BF%E3%81%9F%E3%81%84

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2