docker-magento: setup-ssl fails on Linux
When trying to run the setup-ssl command on Linux it fails for the sudo security add-trusted-cert
command as there’s no security binary which could be called. I’d assume that’s a Mac-only solution.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 19 (9 by maintainers)
I’ve been a bit shutdown since March, thanks for being patient.
I modified
bin/setup-ssl-ca
with the following contents:This seems like the least-invasive solution. Let’s see if it works. I hate adding host dependencies.
This new version will be in the 33.0.0 tag going out later today. Please reopen/comment on this ticket if it isn’t working.
Perhaps we should move
mkcert
out of the container, and onto the host? I’ve been trying to avoid adding any dependencies on the host machine, howevermkcert
seems to take care of all of this for us automatically, so it may be worth the switch:https://github.com/FiloSottile/mkcert#installation
Can someone verify this line also works on Ubuntu?
I can update the
bin/setup-ssl-ca
script to detect mac/linux and run the appropriate line.