Artifact Connector is failing with "x509 certificate signed by unknown authority"

While trying to add Artifact connector you are seeing below error:

https://artifactoryurl/: x509: certificate signed by unknown authority

Most common reason for this failure is:

  1. Your artifactory server is using either self signed cert, so you can follow below step to import self signed cert:
    Add Self-Signed Certificates for Delegate Connections | Harness Developer Hub

  2. Cert chain has some CA which is missing on delegate host
    To validate this need to review the cert chain of certificate used for artifactory and the cert installed on
    delegate host

Troubleshooting: Openssl can be handy to validate and troubleshoot these cert issues GitHub - openssl/openssl: TLS/SSL and crypto library