cozy-labs / cozy-desktop

File Synchronisation for Cozy on Desktop and Laptop
https://cozy-labs.github.io/cozy-desktop/
GNU Affero General Public License v3.0
98 stars 45 forks source link

ci: Sign Windows binaries using Digicert Keylocker #2321

Closed taratatach closed 9 months ago

taratatach commented 9 months ago

Following changes to the internation recommandations regarding code signing certificates issuance and storage, DigiCert does not allow simply downloading a certificate and use it to sign binaries. Instead, we need to store it in a HSM or, as we chose, in a cloud-based HSM such as DigiCert Keylocker.

This means we need to install tools to fetch the certificate from the HSM prior to signing our software and also use a custom signing script as electron-builder does not support Keylocker out of the box.

The process is split into 3 phases:

  1. download the DigiCert client and the certificate
  2. sign our binaries
  3. verify the signature

Please make sure the following boxes are checked: