Skip to content

Commit b9bff67

Browse files
Marika BertelliMarika Bertelli
Marika Bertelli
authored and
Marika Bertelli
committed
Extend ssl-certificate expire date
1 parent 55a399a commit b9bff67

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

images/wordpress/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ COPY mu-plugins /usr/src/mu-plugins/
3333
COPY wp-config.php /var/www/html/wp-config.php
3434

3535
COPY openssl.cnf /etc/ssl/openssl.cnf
36-
RUN openssl req -x509 -out /etc/ssl/certs/apache-localhost.crt \
36+
RUN openssl req -x509 -days 3650 -out /etc/ssl/certs/apache-localhost.crt \
3737
-keyout /etc/ssl/private/apache-localhost.key \
3838
-newkey rsa:2048 -nodes -sha256 \
3939
-subj '/CN=localhost' \
4040
-extensions EXT \
4141
-config /etc/ssl/openssl.cnf
42+
43+
4244
COPY apache-https.conf /etc/apache2/sites-available/
4345
RUN a2enmod ssl
4446
RUN a2ensite apache-https

images/wordpress/openssl.cnf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
[dn]
1+
[dn]
22
CN=localhost
33
[req]
4-
distinguished_name = dn
4+
distinguished_name = dn
55
[EXT]
66
subjectAltName=DNS:localhost
77
keyUsage=digitalSignature
88
extendedKeyUsage=serverAuth
9+

0 commit comments

Comments
 (0)