Powershell error encountered ‘The certificate chain was issued by an authority that is not trusted’ during configuring it in Sage X3 Console

By | May 29, 2024

In Sage X3, we may come across this error ‘The certificate chain was issued by an authority that is not trusted’’ while trying to configure Application in the console. This issue occurs when you upgrade runtime to any version 95.2.85 and greater.

PowerShell error
Fig01: PowerShell error

Cause:

  1. Runtime version is 95.2.85 and greater for patch upgaradtion.
  2. Old version of Powershell is installed in the server which is not compatible with Runtime 95.2.85 or greater.
  3. Console solution-> Runtime section-> PowerShell path -> Application Configuration.

Solution:

To solve powershell error, follow below steps:

  1. Check the powershell version. Uninstall existing powershell version through cmd using below  commands .

Uninstall-module -Name SQLServer -RequiredVersion “22.2.0”

2. Again run the below command in cmd for installing new powershell.

Install-Module -Name SqlServer -RequiredVersion “21.1.18256” -Scope AllUsers -force

3. Run below command in cmd.

Get-InstalledModule -Name SqlServer

PowerShell Installation cmds2
Fi02: PowerShell Installation cmds
PowerShell Installation cmd3
Fig03: PowerShell Installation cmd

4. After this rerun/update runtime component. Make sure runtime service is turned off.

5. Restart runtime service.

6. Then open console.

7. Double click on Solution.

8. In the Runtime section add Powershell path (the drive path where it is installed).

PowerShell path in Console4
Fig04: PowerShell path in Console

9. Save the solution.

10. Click on the Application configuration button.

Note: These steps are for only if any powershell version is already installed in the server above command is used only for that.

By doing all the above steps, user can solve encountered PowerShell error in Sage X3.