Skip to content

Instantly share code, notes, and snippets.

@fullkomnun
Created October 10, 2019 12:52
Show Gist options
  • Save fullkomnun/12c723d05157732a1e1e84470f21b9a7 to your computer and use it in GitHub Desktop.
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
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