From 24e41ff7a3cc5f2f7e7adea667d5e5d03665526b Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Mon, 3 Aug 2015 13:40:25 +0200 Subject: [PATCH] lxc-alpine: fix verification of apk.static binary MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We need specify which hashing algorithm was used to create the signature we check. Fixes #609 Signed-off-by: Natanael Copa Acked-by: Stéphane Graber --- templates/lxc-alpine.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/lxc-alpine.in b/templates/lxc-alpine.in index 963c42a99..6dcc51b2a 100644 --- a/templates/lxc-alpine.in +++ b/templates/lxc-alpine.in @@ -83,7 +83,7 @@ get_static_apk () { # verify the static apk binary signature APK=$rootfs/sbin/apk.static - openssl dgst -verify $rootfs/etc/apk/keys/$keyname \ + openssl dgst -sha1 -verify $rootfs/etc/apk/keys/$keyname \ -signature "$APK.SIGN.RSA.$keyname" "$APK" || return 1 if [ "$auto_repo_dir" ]; then -- 2.47.2