Unable to run .NET s2i build due to certificate error : "The remote certificate is invalid according to the validation procedure"

Solution Verified - Updated -

Issue

While attempting to run a .NET s2i build the following error is received:

STEP 8: RUN /usr/libexec/s2i/assemble ---> Installing application source... Using SDK: 3.1.105 ---> Restoring application dependencies... /opt/rh/rh-dotnet31/root/usr/lib64/dotnet/sdk/3.1.105/NuGet.targets(123,5): error : Unable to load the service index for source https://api.nuget.org/v3/index.json. [/opt/app-root/src/SampleDBConn.sln] /opt/rh/rh-dotnet31/root/usr/lib64/dotnet/sdk/3.1.105/NuGet.targets(123,5): error : The SSL connection could not be established, see inner exception. [/opt/app-root/src/SampleDBConn.sln] /opt/rh/rh-dotnet31/root/usr/lib64/dotnet/sdk/3.1.105/NuGet.targets(123,5): error : The remote certificate is invalid according to the validation procedure. [/opt/app-root/src/SampleDBConn.sln] subprocess exited with status 1 subprocess exited with status 1

Environment

  • OpenShift Container Platform 4.5

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content