Skip to content

C# proxy certificate issue #492

@CaringDev

Description

@CaringDev

Using the new .NET NuGet package (in a docker container) I run into problems when behind a company proxy, i.e. proxyUrl is set. The proxy certificate is in the OS (Linux) trusted roots (installed by copying and running update-ca-certificates). The .NET HttpClient is able to connect but when trying to connect to the registry I get

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

If I read https://www.graalvm.org/jdk25/reference-manual/native-image/dynamic-features/CertificateManagement/ correctly, the keystore gets embedded at build time but can be overwritten using javax.net.ssl.trustStore.

Given proxies are a rather common thing, would you mind adding a way to "bring our own certificates"?

Metadata

Metadata

Assignees

Labels

PR welcomeUsers are welcome to submit PR

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions