Error on installing ui.apps through Azure- PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target | Community
Skip to main content
Level 2
August 6, 2024

Error on installing ui.apps through Azure- PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

  • August 6, 2024
  • 1 reply
  • 954 views

Recently, Adobe has performed the RHEL8 upgrade on all of our AEM Servers. After the upgrade, our Azure pipelines started failing when deploying the code to both dev and stage environment. The error is as following

[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:1.0.2:install (dev-author-deploy) on project wknd-com2.ui.apps: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]

Adobe tried re-installing the certs and re-installed the Java, but no luck and adobe was asking us to use the Adobe Cloud Manager for the deployments but we have a few dependencies with Azure that we can't go immediately to cloud manager for deploying to lower environments. I would appreciate any help on this.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

AMANATH_ULLAH
Community Advisor
Community Advisor
August 7, 2024

@adarshdiddi

We faced similar issue connecting external services after RHEL 8 upgrade 

Adobe team copied the certificate from old RHEL 7 server to new RHEL 8 server and then restarted the AEM service which resolved the issue

Can you check if your AEM service was restarted after copying the certificate from old server?

Amanath Ullah
Level 2
August 7, 2024

Hi @amanath_ullah ,
Thanks for your reply on this, could you please let us know what certificates needs to be copied over?

AMANATH_ULLAH
Community Advisor
Community Advisor
August 8, 2024

@adarshdiddi 

Java cacerts file has to be copied from the old RHEL7 to the new  RHEL8 instance and AEM services has to be restarted 

Amanath Ullah