dotnet / sdk-container-builds

Libraries and build tooling to create container images from .NET projects using MSBuild
https://learn.microsoft.com/en-us/dotnet/core/docker/publish-as-container
MIT License
181 stars 39 forks source link

Support insecure registries with untrusted HTTPS certificates #576

Closed baronfel closed 3 months ago

baronfel commented 5 months ago
          @baronfel when configuring a registry as insecure, both podman and docker allow the connection to be either unencrypted HTTP or HTTPS with an untrusted certificate.

The implementation added in https://github.com/dotnet/sdk/pull/39840 is only supporting the first.

Originally posted by @tmds in https://github.com/dotnet/sdk-container-builds/issues/571#issuecomment-2150252629

Our existing implementation should look at the configurations for both tools and configure the HttpClient instances to support the specific endpoints with untrusted certs.

baronfel commented 3 months ago

Closing as linked PR is implemented