forked from Mirror/pmbootstrap
pmb.chroot.apk_static: use sha256 sig for verification (MR 2417)
Fixes #2456 Depends on https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/72741
This commit is contained in:
parent
4998e27cc7
commit
7a299b3fc4
1 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ def read_signature_info(tar):
|
|||
:returns: (sigfilename, sigkey_path)
|
||||
"""
|
||||
# Get signature filename and key
|
||||
prefix = "sbin/apk.static.SIGN.RSA."
|
||||
prefix = "sbin/apk.static.SIGN.RSA.sha256."
|
||||
sigfilename = None
|
||||
for filename in tar.getnames():
|
||||
if filename.startswith(prefix):
|
||||
|
@ -88,7 +88,7 @@ def verify_signature(files, sigkey_path):
|
|||
[
|
||||
"openssl",
|
||||
"dgst",
|
||||
"-sha1",
|
||||
"-sha256",
|
||||
"-verify",
|
||||
sigkey_path,
|
||||
"-signature",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue