Example for supporting service to service communication over HTTPS in local container debugging.
Creates a self-signed certificate to act as a CA and certificates for the front end and back end services signed by the self-signed certificate.
Runs CreateCerts.sh in a container, trusting the generated self-signed certificate as a root CA for the current user, and generating .env files to configure the services to use the test certificates.
This target handles running Create-Certs.ps1 when the project is opened or built in VS (so you don't have to remember to run the script before opening the project)
This stage adds the self-signed certificate as a trusted certificate authority in the containers.
Properties to customize Docker debugging to use the testCerts stage and the generated files. Docs
Compose file to customize Docker Compose debugging to use the testCerts stage and the generated files. Docs