File tree 2 files changed +6
-3
lines changed 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -33,12 +33,14 @@ COPY mu-plugins /usr/src/mu-plugins/
33
33
COPY wp-config.php /var/www/html/wp-config.php
34
34
35
35
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 \
37
37
-keyout /etc/ssl/private/apache-localhost.key \
38
38
-newkey rsa:2048 -nodes -sha256 \
39
39
-subj '/CN=localhost' \
40
40
-extensions EXT \
41
41
-config /etc/ssl/openssl.cnf
42
+
43
+
42
44
COPY apache-https.conf /etc/apache2/sites-available/
43
45
RUN a2enmod ssl
44
46
RUN a2ensite apache-https
Original file line number Diff line number Diff line change 1
- [dn]
1
+ [dn]
2
2
CN =localhost
3
3
[req]
4
- distinguished_name = dn
4
+ distinguished_name = dn
5
5
[EXT]
6
6
subjectAltName =DNS:localhost
7
7
keyUsage =digitalSignature
8
8
extendedKeyUsage =serverAuth
9
+
You can’t perform that action at this time.
0 commit comments