diff options
author | Danny Su | 2016-05-14 11:36:49 -0700 |
---|---|---|
committer | Danny Su | 2016-05-14 11:36:49 -0700 |
commit | 23112cdeea509741168201a04f90baebcfd68dc3 (patch) | |
tree | c53cfffef27295515736ea4280084a2ea772a8d6 | |
parent | 07c42f37b9dab39445f447f05776597cb44ed468 (diff) | |
download | aur-23112cdeea509741168201a04f90baebcfd68dc3.tar.gz |
Add signature verification
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 10 | ||||
-rw-r--r-- | tresorit_installer.run.pubkey | 14 |
3 files changed, 25 insertions, 3 deletions
@@ -1,9 +1,9 @@ # Generated by mksrcinfo v8 -# Tue Feb 16 17:48:50 UTC 2016 +# Sat May 14 18:34:36 UTC 2016 pkgbase = tresorit pkgdesc = Encrypted cloud storage for your confidential files. Using Tresorit, files are encrypted before being uploaded to the cloud. Start encrypting files for free. pkgver = 1.0.147.423 - pkgrel = 1 + pkgrel = 2 url = http://www.tresorit.com/ install = tresorit.install arch = i686 @@ -2,7 +2,7 @@ pkgname=tresorit pkgver=1.0.147.423 -pkgrel=1 +pkgrel=2 pkgdesc='Encrypted cloud storage for your confidential files. Using Tresorit, files are encrypted before being uploaded to the cloud. Start encrypting files for free.' arch=('i686' 'x86_64') url="http://www.tresorit.com/" @@ -14,6 +14,14 @@ source=("https://installerstorage.blob.core.windows.net/public/install/tresorit_ sha1sums=('994af4c75b2ba8501821fa8e399c0e702fccedd0') prepare() { + # Validate signature + head -c1044 tresorit_installer.run | tail -c+20 | xxd -r -p > tresorit_installer.run.signature + VERIFICATION_RESULT=`tail -c+1046 tresorit_installer.run | openssl sha512 -verify ../tresorit_installer.run.pubkey -sigopt rsa_padding_mode:pss -sigopt rsa_pss_saltlen:-1 -signature tresorit_installer.run.signature` + if [ "$VERIFICATION_RESULT" != "Verified OK" ]; then + echo " ! Binary signature verification failed" + exit 1 + fi + SKIP=`head tresorit_installer.run | grep "^SKIP" | sed 's/SKIP=//'` mkdir -p tresorit tail -n+$SKIP tresorit_installer.run | tar xz -C tresorit diff --git a/tresorit_installer.run.pubkey b/tresorit_installer.run.pubkey new file mode 100644 index 000000000000..0ab43e4aa1ca --- /dev/null +++ b/tresorit_installer.run.pubkey @@ -0,0 +1,14 @@ +-----BEGIN PUBLIC KEY----- +MIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAryoiyObNiVI1NY3jNcjW +0olXEUP5kaZRXTkUJIsFMQ2Q8QW827CjmvNgATvXBippiGr5X2jb2Tvx1Ktfbzav +JirNFRDQKuoYv/Sk81ax87xXLqxclYVv6EjQLncGlcq8uJ9VOPuwAIVJf9bLo2Li +BXEP7UKH+yyX2jCQB0WgoQNX2NOydcD6whdj5JcmH9ZYfP4qPI+jw/uadpsFqBHy +AreALoIpoCREctXERuImq4nUCLR68tH4438zRRQwwG5dg78ZNC/aEoXG8Uyj59BN +GvnWDzE42OWuX3d6qL2Z5FwYncDHDRmZZl9R6Mx9PshYuKrNIuciQVCC3l02/qmj +GD5P7uHVN8HufLpeYefncreO3V3GDLPrZjLNuFcc1RhOPiec7ffJuvdX/KPML+CI +40dGDl7qiE52xNKhcNwR7N0OIdChV5qyna30uyYFBC/2kWYCTzOnhD7YrPcxu+W7 +Sc76YpNqtYPcczYjPuVc3RZssQUpHIP/81jYu4Lj3w33tKmBDsLK6p2OJHXuoLss +HF2YpzJJ1zlMJA5AGFaJd4Uv2ByPjOTY1MDxuVsWHZkIef4Z0lDOGb1MdlD8hMGR +bRZwyZ2RtU08yhwJWBEL08MblLMyHWidvEXnVCQZAy/ISez76nuQxs5HO/bh1wgD +P3lOsOjyg02BMS/l9m/uyWsCAwEAAQ== +-----END PUBLIC KEY----- |