Created
October 10, 2019 12:52
-
-
Save fullkomnun/12c723d05157732a1e1e84470f21b9a7 to your computer and use it in GitHub Desktop.
A docker file for installation of softhsm2 based on java-centos-openjdk8-jdk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM fabric8/java-centos-openjdk8-jdk | |
LABEL maintainer=fullkomnun | |
ENV SOFTHSM2_CONF=/etc/softhsm2.conf | |
USER root | |
RUN set -xe; \ | |
yum update -y && \ | |
yum install -y softhsm && \ | |
yum clean all && \ | |
mkdir -p /var/lib/softhsm/tokens/ && \ | |
export SOFTHSM2_CONF=/etc/softhsm2.conf && \ | |
softhsm2-util --init-token --slot 0 --so-pin 1234 --pin 1234 --label "some-label" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment