Conversation
|
@MarikaBBB @william-man do you want to add steps for testing to the description here? |
|
|
||
| COPY openssl.cnf /etc/ssl/openssl.cnf | ||
| RUN openssl req -x509 -out /etc/ssl/certs/apache-localhost.crt \ | ||
| -keyout /etc/ssl/private/apache-localhost.key \ |
There was a problem hiding this comment.
Let's indent these lines a little like lines 8-19 here
|
@RobjS I think this is fine and it works OK for me (the browser complains because the cert is self-signed, but 🤷🏻 ). Is there anything else you'd want to do here apart from squashing that last commit? |
|
@snim2 I've got this working, and have Saluki running on https (albeit with the browser complaining about the certificate). But there's a couple of things I'm unclear on here:
|
|
Yes, that would work. It's just that however we do it, there needs to be some kind of |

This PR is in relation to the issue: Enable HTTPS #57 automated SSL certificate generation and modifications to the Docker image to enable HTTPS support in the WordPress container in local environment .
The ssl key is generated by a command found in the following article: https://letsencrypt.org/docs/certificates-for-localhost/
How to Test
run
docker build -t wpc:https images/wordpress/run
docker run -p 127.0.0.1:80:80 wpc:httpsrun
docker run -p 127.0.0.1:443:433 wpc:httpsThese steps are for building the image and verify that the container run port 80 and port 443 with name
wpcand taghttps. Then you can exit and run thewpc:https images/wordpress/run on thesaluki-test-site.run
script/serverOpen the browser and check if
https://localhostopens and check if the ssl-certificate is attached.