'Powershell running .NET Core on Linux RedHat giving SSL error connecting

I am currently trying to use dotnetcore to run a script over Powershell. This script uses a library that will authenticate with Azure using a service principal and then connect to the XMLA endpoint to perform several operations.

While this script is running fine on my Windows Machine, when ported into Linux RedHat it gives an SSL error.

We have tried to add all PEM certificates to the /etc/pki/ca-trust/source/anchors/ folder and execute "update-ca-trust enable" but still the SSL error persists.

Anyone might have an idea how to overcome the SSL issue either from powershell, dotnetcore or by scripting options?

Thank you



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source