I have the following dockerfile:
FROM alpine:3.8
RUN apk add --no-cache apache2 apache2-ssl php7-cli php7-apache2 php7-openssl
RUN mkdir /run/apache2/ && \
echo '<?php \
var_dump(openssl_get_cipher_methods());' >
/var/www/localhost/htdocs/index.php
CMD ["httpd", "-DFOREGROUND"]
Now, when I access the index.php via apache, I see 40 ciphers, when I run the container with
docker run --rm -p sample php /var/www/localhost/htdocs/index.php
I see 180 ciphers.
if I remove the apache2-ssl
package and re-try, via apache I now see all 180 ciphers. I've tried to enable all cipher on mod_ssl
directives, but nothing helps. I'm specifically interested in stream ciphers of AES (CTR, OFB, CFB)
Thanks