Commit 24e41ff7 by Natanael Copa Committed by Stéphane Graber

lxc-alpine: fix verification of apk.static binary

We need specify which hashing algorithm was used to create the signature we check. Fixes #609 Signed-off-by: 's avatarNatanael Copa <ncopa@alpinelinux.org> Acked-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent b7e6f8f0
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment