Skip to content

Commit fb6991e

Browse files
authored
Merge pull request #118 from godotengine/windows-new-signing
Windows: Change code signing process to match new key
2 parents 7cc22b8 + 1104669 commit fb6991e

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

build-release.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ exec > >(tee -a "out/logs/build-release") 2>&1
1212
source ./config.sh
1313

1414
can_sign_windows=0
15-
if [ ! -z "${SIGN_KEYSTORE}" ] && [ ! -z "${SIGN_PASSWORD}" ] && [[ $(type -P "osslsigncode") ]]; then
15+
if [ ! -z "${WINDOWS_SIGN_NAME}" ] && [ ! -z "${WINDOWS_SIGN_URL}" ] && [[ $(type -P "osslsigncode") ]]; then
1616
can_sign_windows=1
1717
else
18-
echo "Disabling Windows binary signing as config.sh does not define the required data (SIGN_KEYSTORE, SIGN_PASSWORD), or osslsigncode can't be found in PATH."
18+
echo "Disabling Windows binary signing as config.sh does not define the required data (WINDOWS_SIGN_NAME, WINDOWS_SIGN_URL), or osslsigncode can't be found in PATH."
1919
fi
2020

2121
sign_windows() {
2222
if [ $can_sign_windows == 0 ]; then
2323
return
2424
fi
25-
osslsigncode sign -pkcs12 ${SIGN_KEYSTORE} -pass "${SIGN_PASSWORD}" -n "${SIGN_NAME}" -i "${SIGN_URL}" -t http://timestamp.comodoca.com -in $1 -out $1-signed
25+
P11_KIT_SERVER_ADDRESS=unix:path=/run/p11-kit/p11kit.sock osslsigncode sign -pkcs11module /usr/lib64/pkcs11/p11-kit-client.so -pkcs11cert 'pkcs11:model=SimplySign%20C' -key 'pkcs11:model=SimplySign%20C' -t http://time.certum.pl/ -n "${WINDOWS_SIGN_NAME}" -i "${WINDOWS_SIGN_URL}" -in $1 -out $1-signed
2626
mv $1-signed $1
2727
}
2828

config.sh.in

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,13 @@ export BUILD_NAME='custom_build'
5252
# Default number of parallel cores for each build.
5353
export NUM_CORES=16
5454

55-
# Set up your own signing keystore and relevant details below.
55+
# Set up your own Windows signing details below.
5656
# If you do not fill all SIGN_* fields, signing will be skipped.
5757

58-
# Path to pkcs12 archive.
59-
export SIGN_KEYSTORE=''
60-
61-
# Password for the private key.
62-
export SIGN_PASSWORD=''
63-
6458
# Name and URL of the signed application.
6559
# Use your own when making a thirdparty build.
66-
export SIGN_NAME=''
67-
export SIGN_URL=''
60+
export WINDOWS_SIGN_NAME=''
61+
export WINDOWS_SIGN_URL=''
6862

6963
# Hostname or IP address of an OSX host (Needed for signing)
7064
# eg 'user@10.1.0.10'

0 commit comments

Comments
 (0)