Orchestrator - troubleshooting errors while downloading repositories.
When configuring a repository, and defining a module name/version any attempt to download (from) the repository yields the following error : Register-PSRepository: \u001B[31;1mThe specified Uri 'https://xxx.xxx.nl/repository/powershell-hosted/' for parameter 'SourceLocation' is an invalid Web Uri. Please ensure that it meets the Web Uri requirements.\u001B[0m
VMware vRealize Automation 8.x
Most likely the root cause of the issue is that they are using an internal CA, which is not trusted by default in PhotonOS (which all orchestrator runtimes are based on). Custom trust was implemented in 8.18.1:
https://docs.vmware.com/en/VMware-Aria-Automation/services/rn/vmware-aria-automation-release-notes/index.html
Automation Orchestrator trusted certificates are now imported in non-Java runtimes (Python, PowerShell, PowerCLI, and NodeJS).
This resolves the issue with downloading dependencies from repositories which use customer certificate authorities. Additionally, it is no longer required to use insecure connections to endpoints using self-signed or custom CA certificates.
Since both current workarounds were dismissed by the customer, an upgrade is their only option.
The bug has been fixed.
Workaround:
You might get the error because using a self-singed / internally signed SSLCcertificate and due to powershell and PhotonOS limitations self singed certificates cannot be trusted for powershell repositories.
Ask customer to confirm if that is correct?
Try below workaround:
• set a certificate signed by a root ca for the domain, or
• use http repo (non-ssl), or
use a proxy with a trusted ssl certificate.