New Nexus Repo: Failed to execute HttpGet for artifact
book
Article ID: 205506
calendar_today
Updated On:
Products
CA Release Automation - Release Operations Center (Nolio)CA Release Automation - DataManagement Server (Nolio)
Issue/Introduction
After creating a new Nexus repository we're seeing the following errors in our management server's nolio_dm_all.log file:
<YYYY-MM-DD HH:MM:SS>,NNN [ActionsSyncTimer] ERROR (com.nolio.platform.shared.communication.services.artifacts.repositoryplugins.ArtifactRepositoryPlugin:521) - Failed to execute HttpGet for artifact [/nexus/service/local/repositories/nolio/status] from default repository [https://<repoServername>:8443/nexus/content/repositories/nolio]. javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)
Environment
CA Release Automation - 6.x
Cause
This error indicates that the Management Server (aka NAC) has had it's conf/nolio-repo.properties setup to point to a repository using https and the management server does not have a certificate in its truststore.
Resolution
Import the needed certificate to the mgmt servers truststore.
To do this:
Download the certificate from the site in question.
If necessary, convert the certificate obtained in step #1 into an x509 format that can be imported into a java keystore (see additional info section below).
Import the certificate into the agents java keystore.
You can do this by opening a command prompt on the artifact retrieval agent machine and: