Hi,
No more information?
Any update, pls?
I used host file to map like this: 127.0.0.1 mydomain.webgateway As you can see in my docker compose file:
volumes:
- ~/.aspnet/https:/https:ro
Is that correct way to map certificate file? I can see all mapped pfx files in https folder of the container.
I already generated pfx file with this command: New-SelfSignedCertificate -CertStoreLocation Cert:\LocalMachine\My -DnsName "mydomain.webgateway" -FriendlyName "mydomain.webgateway" -NotAfter (Get-Date).AddYears(10) (because the URL is not localhost, they are container names instead), added to Trusted Root Certification Authorities on Local Machine and mounted successfully, but the error still occurs.
For linux, pfx is problematic as far as i know. You can use OpenSSL to generate self-signed certificate.
Do you mean linux for host or container? I use Windows host but linux container. Do I have to use OpenSSL to generate certificate? If yes, how to use that certificate in docker-compose file?