docker-magento
docker-magento copied to clipboard
SSL issues on MacOS
Description I am trying to use GraphCommerce with markshust/docker-magento as its backend. Browsers recognise the self-signed certificate no issues however, when it is accessed via terminal there seem to be errors.
Steps To Reproduce
- macOS 12.5.1
- Install
markshust/docker-magento
with Magento 2.4.5 -
curl https://magento.test
Expected Result
curl
should render the same result that the browser sees.
Actual Result
curl https://magento.test
curl: (60) SSL certificate problem: unable to get local issuer certificate
More details here: https://curl.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
There are two ways to use curl to get the result.
# 1. Ignore CA check
curl --insecure https://magento.test/
# 2. Use CA file
docker cp "$(docker compose ps -q app|awk '{print $1}')":/root/.local/share/mkcert/rootCA.pem .
curl --cacert rootCA.pem https://magento.test/
I'm unable to replicate

Closing this one out as unable to replicate.