Skip to content

Commit 093e8eb

Browse files
committed
Expect acme
1 parent 928dc76 commit 093e8eb

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

OracleLinuxDevelopers/oraclelinux9/httpd/2.4/Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,15 @@ FROM ghcr.io/oracle/oraclelinux:9
33
RUN dnf install -y httpd mod_ssl && \
44
rm -rf /var/cache/dnf
55

6-
ENV CERTIFICATE_DIR /etc/pki/tls/certs
7-
ENV KEY_DIR /etc/pki/tls/private
6+
RUN sed -i \
7+
-e 's/^SSLCertificateFile .*/SSLCertificateFile \/certs\/fullchain.pem/g' \
8+
-e 's/^SSLCertificateKeyFile .*/SSLCertificateKeyFile \/certs\/privkey.pem/g' \
9+
/etc/httpd/conf.d/ssl.conf
10+
11+
RUN mkdir -p /certs
12+
13+
ENV CERTIFICATE_DIR /certs
14+
ENV KEY_DIR /certs
815

916
COPY ./entrypoint.sh /opt/entrypoint.sh
1017

OracleLinuxDevelopers/oraclelinux9/httpd/2.4/entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
set -eu pipefail
44

5-
SERVER_CERT="$CERTIFICATE_DIR/localhost.crt"
6-
SERVER_KEY="$KEY_DIR/localhost.key"
5+
SERVER_CERT="$CERTIFICATE_DIR/fullchain.pem"
6+
SERVER_KEY="$KEY_DIR/privkey.pem"
77

88
if [ ! -f "$SERVER_KEY" ]; then
99
echo "Generating certificate private key for SSL support"

0 commit comments

Comments
 (0)