docker-magento icon indicating copy to clipboard operation
docker-magento copied to clipboard

SSL issues on MacOS

Open franciskim opened this issue 2 years ago • 2 comments

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

  1. macOS 12.5.1
  2. Install markshust/docker-magento with Magento 2.4.5
  3. 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.

franciskim avatar Sep 01 '22 07:09 franciskim

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/

rangerz avatar Sep 10 '22 03:09 rangerz

I'm unable to replicate

Screen Shot 2022-09-13 at 1 55 46 PM

markshust avatar Sep 13 '22 17:09 markshust

Closing this one out as unable to replicate.

markshust avatar Nov 02 '22 10:11 markshust