Skip to content

Commit c80ad39

Browse files
committed
Override PHP 5.6 root CA
1 parent 9393afd commit c80ad39

File tree

2 files changed

+3159
-0
lines changed

2 files changed

+3159
-0
lines changed

php/Dockerfile-5.6

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ ADD /php/conf/php-fpm.conf /etc/php/current/php-fpm.conf
187187
ADD /php/conf/php.ini /etc/php/current/php.ini
188188
ADD /php/conf/php-www.conf /etc/php/current/php-fpm.d/www.conf
189189

190+
# Root CA override
191+
ADD /php/conf/root.cer /etc/root-ca/root.cer
192+
RUN sed -i -e 's#;curl.cainfo =#curl.cainfo="/etc/root-ca/root.cer"#g' /etc/php5/php.ini
193+
RUN sed -i -e 's#;openssl.cafile=#openssl.cafile="/etc/root-ca/root.cer"#g' /etc/php5/php.ini
194+
190195
# Clear out garbage
191196
RUN unset DEPS && rm -rf /run/php && rm -rf /run/php-fpm7.3
192197

0 commit comments

Comments
 (0)