Miguel Veloso a8ec36c648 | 4 years ago | |
---|---|---|
.. | ||
.gitignore | 4 years ago | |
README.md | 4 years ago | |
create-docker-certificate.sh | 4 years ago | |
install-docker-certificate.ps1 | 4 years ago |
.pem + .key
) and its .pfx
fileFrom WSL, run the create-docker-certificate.sh
script with a strong password for the certificate.
./create-docker-certificate.sh "secure-COMPLEX-and-SECRET-password"
The script creates a certificate for both host.docker.internal
and localhost
.
Run the install-docker-certificate.ps1
with the same password you used above:
.\install-docker-certificate.ps1 "secure-COMPLEX-and-SECRET-password"
The above script:
%USERPROFILE%\.aspnet\https
folder. Servers will serve the certificate from this folder..pem
file as .crt
to the src\certificates folder to add it as a root CA when building the images for some services.src\docker-compose.certificates.sample.yaml
file as src\docker-compose.certificates.yaml
ASPNETCORE_Kestrel__Certificates__Default__Password
IMPORTANT
The
src\docker-compose.certificates.yaml
file is .gitignore'd to avoid pushing it to the repo with the certificate password.To avoid security risks, DON'T FORCE PUSH the file.