-
Notifications
You must be signed in to change notification settings - Fork 1
π οΈ Local HTTPS SSL Setup for (macOS DDEV)
Thomas Fink edited this page Apr 1, 2025
·
1 revision
To access your local DDEV environment at https://zms.ddev.site without SSL errors on macOS, follow these steps:
brew install mkcert
brew install nss # optional, for Firefox support
mkcert -installmkdir -p ~/.ddev/global_config/sslmkcert -cert-file ~/.ddev/global_config/ssl/zms.ddev.site.crt \
-key-file ~/.ddev/global_config/ssl/zms.ddev.site.key \
zms.ddev.sitesudo security add-trusted-cert -d -r trustRoot \
-k /Library/Keychains/System.keychain \
"$(mkcert -CAROOT)/rootCA.pem"This step allows macOS to trust all certificates created by
mkcert.
ddev restartNow visit:
https://zms.ddev.site
Or access your API directly:
https://zms.ddev.site/terminvereinbarung/api/citizen/offices-and-services/
β You should not see any SSL errors in your browser.
To enable trusted certs in Firefox:
- Visit
about:config - Search:
security.enterprise_roots.enabled - Set it to
true - Restart Firefox
curl -I https://zms.ddev.siteYou should see a 200 OK or redirect response without SSL errors.