Saving credential vault fails stating the server was unable to connect
search cancel

Saving credential vault fails stating the server was unable to connect

book

Article ID: 415643

calendar_today

Updated On:

Products

Data Loss Prevention Endpoint Prevent

Issue/Introduction

When attempting to save a new credential vault setting. the operation fails with  The server was unable to connect to the(vault API URL)

The localhost shows the below entries:

PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested targetorg.springframework.web.client.ResourceAccessException: I/O error on GET request for "<credential vault URL>"
 PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target; nested exception is javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

Cause

If the cert being used to create the credential vault connection is from a private CA, then the root certificate must be imported into CAcerts. 

Resolution

Import the root cert used by the credential vault into cacerts. 
Importing SSL certificates to Enforce or Discover servers