wodby / php

Generic PHP docker container images
MIT License
156 stars 103 forks source link

Allow HTTPS certification authorities updates: add openssl & update-ca-certificates to sudoers #201

Open obriat opened 4 months ago

obriat commented 4 months ago

I use php packages stored on a private repository, this repository use a private https certificate that is signed with a private certification authorities (CA).

I don't want composer to ignore https errors, so I need to register my private CA certificats in the image, here's the command:

curl -s http://ca.mynetwork.local/my_CA.crt | sudo openssl x509 -inform der -out /usr/local/share/ca-certificates/ca.mynetwork.local.my_CA.crt
sudo update-ca-certificates

To perform this, I need /usr/bin/openssl and /usr/sbin/update-ca-certificates to be added to /etc/sudoers.d/wodby

I'll provide a PR.