Site icon SSL.com

How to Digitally Sign vsix files using eSigner CKA

Securing your VSIX package with a digital signature enhances its security and deters unauthorized modifications. When installing, the VSIX installer shows the digital signature and provides a link to the certificate. Any unauthorized changes to the VSIX content, without a corresponding update to the digital signature, will prompt the installer to alert the user about a compromised package signature.

eSigner CKA (Cloud Key Adapter) is a Windows application that utilizes the CNG (KSP Key Service Provider) interface to enable tools like certutil.exe and signtool.exe to access the eSigner Cloud Signature Consortium (CSC) API for enterprise code signing tasks. Functioning as a virtual USB token, it loads code signing certificates directly into the Windows certificate store.

Requirements

  1. Purchase an SSL.com Code Signing Certificate or Extended Validation (EV) Code Signing Certificate
  2. Enroll your code signing certificate in eSigner
  3. Download and install eSigner CKA

Steps to Sign

  1. Download Dotnet Core SDK: https://dotnet.microsoft.com/en-us/download/dotnet/7.0
  2. Install OpenVSIXSignTool
    dotnet tool install -g OpenVsixSignTool
  3. Use this sign command:
    OpenVsixSignTool sign --sha1 CERTIFICATE THUMBPRINT --timestamp http://ts.ssl.com -ta sha256 -fd sha256 "SIGNABLE FILE PATH"
If you have questions related to PKI and digital certificates, please contact us by email at Support@SSL.com, call 1-SSL-Certificate (1-775-237-8434), or simply click the chat button at the bottom right of this page. As always, thank you for choosing SSL.com!
Exit mobile version