Custom TLS Certificates¶
It’s possible to use “real” TLS certificates issued by a CA rather than the local-development-oriented mkcert
command.
- Obtain a certificate and key from Let’s Encrypt or another source.
- Install the certificate and key in your project’s
.ddev/custom_certs
directory. - The files should be named
<projectname>.crt
and<projectname>.key
, for exampleexampleproj.crt
andexampleproj.key
. - Run
ddev start
and verify using a browser that you’re using the right certificate.