Skip to content

Commit 89ea8dc

Browse files
committed
ci: install patched p11 from source
Patch: OpenSC/libp11#474
1 parent efb8dd1 commit 89ea8dc

File tree

2 files changed

+760
-4
lines changed

2 files changed

+760
-4
lines changed

docker-build-env/Dockerfile-With-HSM

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,20 @@ FROM buildenv
22

33
# Install MoCOCrW dependencies (except OpenSSL)
44
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
5-
# libp11 engine
6-
libengine-pkcs11-openssl \
7-
# headers for p11 engine
8-
libp11-dev \
95
# for pkcs11-tool which we use to create keys in token
106
opensc \
117
# p11-kit-modules allows loading of libp11 engine without having to edit openssl.cnf
128
p11-kit-modules \
139
# softhsm2: includes both softhsm2-util and libsofthsm2
1410
softhsm2 \
1511
&& rm -rf /var/lib/apt/lists/*
12+
13+
ADD keygen_patch.patch /tmp/
14+
15+
RUN cd /tmp && \
16+
wget https://github.com/OpenSC/libp11/releases/download/libp11-0.4.12/libp11-0.4.12.tar.gz && \
17+
tar xvf libp11-0.4.12.tar.gz && \
18+
cd libp11-0.4.12 && \
19+
git apply /tmp/keygen-patch.patch && \
20+
./configure && make -j$(nproc) && make install
21+

0 commit comments

Comments
 (0)