From c377a28d567e6fb020b52ca1352180ad449c9fd5 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Tue, 28 May 2024 17:08:08 +0200 Subject: [PATCH] Use x509 v1 certs for test use in openssl 3.3 Switch back to alpine 3.20 --- docker/test/Dockerfile.native | 6 ++++-- test/lib.sh | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docker/test/Dockerfile.native b/docker/test/Dockerfile.native index 05634ffc..47648bc2 100644 --- a/docker/test/Dockerfile.native +++ b/docker/test/Dockerfile.native @@ -32,7 +32,8 @@ # ***** END LICENSE BLOCK ***** # -FROM alpine:3.19 +# 3.20 +FROM alpine:latest MAINTAINER Olof Hagsand # For clixon and cligen @@ -124,7 +125,8 @@ RUN git clone https://github.com/clicon/mib-yangs.git /usr/local/share/mib-yangs # # Stage 2 # The second step skips the development environment and builds a runtime system -FROM alpine:3.19 +# 3.20 +FROM alpine:latest MAINTAINER Olof Hagsand # For clixon and cligen diff --git a/test/lib.sh b/test/lib.sh index 09c3b53f..a1c7d8dd 100755 --- a/test/lib.sh +++ b/test/lib.sh @@ -1268,7 +1268,8 @@ challengePassword = test EOF # Generate CA cert - openssl req -batch -new -x509 -days 1 -config $tmpdir/ca.cnf -keyout $cakey -out $cacert || err "Generate CA cert" + # XXX v3 requires usage + openssl req -batch -new -x509v1 -days 1 -config $tmpdir/ca.cnf -keyout $cakey -out $cacert || err "Generate CA cert" rm -rf $tmpdir }