File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ RUN set -x \
1111 x86_64|aarch64) \
1212# arches officially built by upstream
1313 set -x \
14- && KEY_SHA512="e7fa8303923d9b95db37a77ad46c68fd4755ff935d0a534d26eba83de193c76166c68bfe7f65471bf8881004ef4aa6df3e34689c305662750c0172fca5d8552a *stdin " \
14+ && KEY_SHA512="e09fa32f0a0eab2b879ccbbc4d0e4fb9751486eedda75e35fac65802cc9faa266425edf83e261137a2f4d16281ce2c1a5f4502930fe75154723da014214f0655 " \
1515 && wget -O /tmp/nginx_signing.rsa.pub https://nginx.org/keys/nginx_signing.rsa.pub \
16- && if [ "$(openssl rsa -pubin -in /tmp/nginx_signing.rsa.pub -text -noout | openssl sha512 -r)" = "$KEY_SHA512" ] ; then \
16+ && if echo "$KEY_SHA512 * /tmp/nginx_signing.rsa.pub" | sha512sum -c - ; then \
1717 echo "key verification succeeded!"; \
1818 mv /tmp/nginx_signing.rsa.pub /etc/apk/keys/; \
1919 else \
Original file line number Diff line number Diff line change @@ -19,9 +19,9 @@ RUN set -x \
1919 x86_64|aarch64) \
2020# arches officially built by upstream
2121 set -x \
22- && KEY_SHA512="e7fa8303923d9b95db37a77ad46c68fd4755ff935d0a534d26eba83de193c76166c68bfe7f65471bf8881004ef4aa6df3e34689c305662750c0172fca5d8552a *stdin " \
22+ && KEY_SHA512="e09fa32f0a0eab2b879ccbbc4d0e4fb9751486eedda75e35fac65802cc9faa266425edf83e261137a2f4d16281ce2c1a5f4502930fe75154723da014214f0655 " \
2323 && wget -O /tmp/nginx_signing.rsa.pub https://nginx.org/keys/nginx_signing.rsa.pub \
24- && if [ "$(openssl rsa -pubin -in /tmp/nginx_signing.rsa.pub -text -noout | openssl sha512 -r)" = "$KEY_SHA512" ] ; then \
24+ && if echo "$KEY_SHA512 * /tmp/nginx_signing.rsa.pub" | sha512sum -c - ; then \
2525 echo "key verification succeeded!"; \
2626 mv /tmp/nginx_signing.rsa.pub /etc/apk/keys/; \
2727 else \
Original file line number Diff line number Diff line change @@ -13,9 +13,9 @@ RUN set -x \
1313 x86_64|aarch64) \
1414# arches officially built by upstream
1515 set -x \
16- && KEY_SHA512="e7fa8303923d9b95db37a77ad46c68fd4755ff935d0a534d26eba83de193c76166c68bfe7f65471bf8881004ef4aa6df3e34689c305662750c0172fca5d8552a *stdin " \
16+ && KEY_SHA512="e09fa32f0a0eab2b879ccbbc4d0e4fb9751486eedda75e35fac65802cc9faa266425edf83e261137a2f4d16281ce2c1a5f4502930fe75154723da014214f0655 " \
1717 && wget -O /tmp/nginx_signing.rsa.pub https://nginx.org/keys/nginx_signing.rsa.pub \
18- && if [ "$(openssl rsa -pubin -in /tmp/nginx_signing.rsa.pub -text -noout | openssl sha512 -r)" = "$KEY_SHA512" ] ; then \
18+ && if echo "$KEY_SHA512 * /tmp/nginx_signing.rsa.pub" | sha512sum -c - ; then \
1919 echo "key verification succeeded!"; \
2020 mv /tmp/nginx_signing.rsa.pub /etc/apk/keys/; \
2121 else \
You can’t perform that action at this time.
0 commit comments