Skip to content

Commit

Permalink
ci: install patched p11 from source
Browse files Browse the repository at this point in the history
  • Loading branch information
ifonajs committed Nov 18, 2022
1 parent efb8dd1 commit 24c3c29
Show file tree
Hide file tree
Showing 2 changed files with 760 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docker-build-env/Dockerfile-With-HSM
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ FROM buildenv

# Install MoCOCrW dependencies (except OpenSSL)
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y --no-install-recommends install \
# libp11 engine
libengine-pkcs11-openssl \
# headers for p11 engine
libp11-dev \
# for pkcs11-tool which we use to create keys in token
opensc \
# p11-kit-modules allows loading of libp11 engine without having to edit openssl.cnf
p11-kit-modules \
# softhsm2: includes both softhsm2-util and libsofthsm2
softhsm2 \
&& rm -rf /var/lib/apt/lists/*

ADD keygen_patch.patch /tmp/

RUN cd /tmp && \
wget https://github.com/OpenSC/libp11/releases/download/libp11-0.4.12/libp11-0.4.12.tar.gz && \
tar xvf libp11-0.4.12.tar.gz && \
cd libp11-0.4.12 && \
git apply /tmp/keygen_patch.patch && \
./configure && make -j$(nproc) && make install

Loading

0 comments on commit 24c3c29

Please sign in to comment.