aboutsummaryrefslogtreecommitdiff
path: root/install-win32/signinstaller
blob: 01dccd3342a2de01e0e35c36657694df82de0a3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh

# Sign the installer
# SIGNCODE should point to directory with signcode.exe and keys

c=`pwd`

# load version.nsi definitions
. autodefs/nsidefs.sh

if [ -n "$SIGNCODE" ] ; then

    cd install-win32
    ls openvpn*.exe 2>/dev/null || exit 1
    exe=`pwd`/`ls -t openvpn*.exe | head -n 1`
    cd $c
    cd "$SIGNCODE"

    TS="http://timestamp.verisign.com/scripts/timstamp.dll"
    echo '******************' SIGNCODE OpenVPN INSTALLER
    ./signcode -spc mycredentials.spc -v myprivatekey.pvk -a sha1 -n "OpenVPN Installer" -t $TS `perl $c/install-win32/dosname.pl $exe`
fi