Signing files
Download kinode_sign.py. It needs Python 3.8 or later and nothing else. It computes the file's digest, asks the service for the signature and a time stamp, and writes the standard PE signature into the file. The file itself is never sent.
export KINODE_CLIENT_ID=00000000-0000-0000-0000-000000000000
export KINODE_CLIENT_SECRET=ks_...
python3 kinode_sign.py sign --account mycompany-signing --profile release \
--description "My App" build/myapp.exe build/helper.dll
Options: --endpoint URL (default https://dev.usekinode.app), --client-id and --client-secret in place of the
environment, --no-timestamp (not recommended, the signature then lasts only as long as the day's certificate).
kinode_sign.py show FILE prints what a file is signed with.
For a single file you can also use Sign a file on the signing account. Your developer account needs the Certificate Profile Signer role for that.
In a build pipeline
- name: Sign
env:
KINODE_CLIENT_ID: ${{ secrets.KINODE_CLIENT_ID }}
KINODE_CLIENT_SECRET: ${{ secrets.KINODE_CLIENT_SECRET }}
run: python3 tools/kinode_sign.py sign --account mycompany-signing --profile release dist/*.exe
With other tools
Any tool that can put a remote signature into a PE file works with the REST API: sign the SHA-256 digest of
the signed attributes, and add the time-stamp token from https://dev.usekinode.app/tsa as the usual unsigned attribute.