Skip to content

Commit

Permalink
Self-generate missing httpd certificate (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
joanlopez authored May 28, 2024
1 parent 895a71a commit a043a41
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions testenv/docker/krbhttp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,13 @@ RUN yum install -y \
&& yum update -y && yum clean all

RUN mkdir /var/www/html/modkerb && mkdir /var/www/html/modgssapi

RUN mkdir -p /etc/pki/tls/certs /etc/pki/tls/private && \
openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 \
-subj "/C=US/ST=Test/L=Test/O=Test/OU=Test/CN=localhost" \
-keyout /etc/pki/tls/private/localhost.key \
-out /etc/pki/tls/certs/localhost.crt

ADD httpd-krb5.conf /etc/httpd/conf.d/
ADD index.html /var/www/html/modkerb/index.html
ADD index.html /var/www/html/modgssapi/index.html
Expand Down

0 comments on commit a043a41

Please sign in to comment.