Last active
November 14, 2015 13:57
-
-
Save bodgix/fe82203d3cdc16a4d4c3 to your computer and use it in GitHub Desktop.
stunnel
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 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