Setting up mkcert for remote development #5823
-
My goal is to make my PC securely communicate with the website running on my LAN server. The server is currently running a development version of the website via ddev, and i exposed it's port via |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @cold-nagai - It's easier to do this with a real certificate or using Let's Encrypt, see https://ddev.readthedocs.io/en/latest/users/topics/hosting/ However, the mkcert CA that you want (not a certificate) is not in Docker, it's in the directory shown in The CA doesn't care about IP addresses, and the way you'd install it in your browser is essentially what's shown in https://ddev.readthedocs.io/en/latest/users/install/ddev-installation/#windows - there are more details at https://github.com/FiloSottile/mkcert?tab=readme-ov-file#installing-the-ca-on-other-systems |
Beta Was this translation helpful? Give feedback.
-
local ddev indeed works fine, but when i visit the local copy of the website, it redirects me to the production version of the website. apache2 log shows the following: The production version of the website runs on Pantheon, and i honestly have 0 idea how the whole stack works. Will /etc/hosts do the trick if i were to replace the website.com with the 127.0.0.1 |
Beta Was this translation helpful? Give feedback.
Hi @cold-nagai - It's easier to do this with a real certificate or using Let's Encrypt, see https://ddev.readthedocs.io/en/latest/users/topics/hosting/
However, the mkcert CA that you want (not a certificate) is not in Docker, it's in the directory shown in
mkcert_ca_root
in your ~/.ddev/global_config.yamlThe CA doesn't care about IP addresses, and the way you'd install it in your browser is essentially what's shown in https://ddev.readthedocs.io/en/latest/users/install/ddev-installation/#windows - there are more details at https://github.com/FiloSottile/mkcert?tab=readme-ov-file#installing-the-ca-on-other-systems