Mark, did you ever get this resolved?
I am having trouble enabling SSL on my php:7.1-apache Docker container because file ‘/etc/ssl/certs/ssl-cert-snakeoil.pem’ does not exist. I am currently trying to create it by running openssl…
Here is the error message I get when building my Docker container:
Step 5/9 : RUN a2enmod ssl && a2ensite default-ssl
—> Using cache
—> 4339c6b72763
Step 6/9 : RUN service apache2 restart
—> Running in 0c79f95c3203
Restarting web server: apache2
failed!
The apache2 configtest failed. … (warning).
Output of config test was:
AH00526: Syntax error on line 32 of /etc/apache2/sites-enabled/default-ssl.conf:
SSLCertificateFile: file ‘/etc/ssl/certs/ssl-cert-snakeoil.pem’ does not exist or is empty
Action ‘configtest’ failed.
The Apache error log may have more information.
Removing intermediate container 0c79f95c3203
The command ‘/bin/sh -c service apache2 restart’ returned a non-zero code: 1
ERROR: Build failed: The command ‘/bin/sh -c service apache2 restart’ returned a non-zero code: 1