Skip to content

Instantly share code, notes, and snippets.

@bodgix
Last active November 14, 2015 13:57
Show Gist options
  • Save bodgix/fe82203d3cdc16a4d4c3 to your computer and use it in GitHub Desktop.
Save bodgix/fe82203d3cdc16a4d4c3 to your computer and use it in GitHub Desktop.
stunnel
FROM centos:6
MAINTAINER Bogdan Katyński
EXPOSE 636
# Install stunnel
RUN yum -y install stunnel
# Create a self-signed keypair
RUN openssl req -x509 \
-newkey rsa:2048 \
-keyout /etc/stunnel/key.pem -out /etc/stunnel/cert.pem \
-days 3650 \
-nodes -subj "/C=US/ST=Oregon/L=Portland/O=TEST/OU=TEST/CN=www.example.com"
ADD ldap.conf /etc/stunnel/
ADD my_init.sh /sbin/
ENTRYPOINT ["/sbin/my_init.sh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment