Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Failed to connect to adobe target

Avatar

Level 4

Hi,

I am unable to connect to adobe target.

 

Capture.PNG

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

What is the AEM and JDK version you are using.

 

I have seen this error during AEM connection to Adobe Nexus during an application build on 6.4 and JDK 1.8. The steps we followed to fix this issue are

 

1. Go to the path: <jdk-path>/Contents/Home/jre/lib/security (Usually this'll be installed in /Library/Java/JavaVirtualMachines/jdk1.8.0_102-b14.jdk/Contents/Home/jre/lib/security)

2. Go to https://www.oracle.com/java/technologies/javase-jce8-downloads.html, agree to the Terms & Conditions, and download & extract the zip file.

3. Copy the files in this zip file, and paste them into your security folder, replacing these two files.

  • local_policy.jar
  • US_export_policy.jar

View solution in original post

5 Replies

Avatar

Community Advisor

Are you behind any firewall ? For example are you accessing form your office laptop which is firewall protected ?

Avatar

Correct answer by
Employee Advisor

What is the AEM and JDK version you are using.

 

I have seen this error during AEM connection to Adobe Nexus during an application build on 6.4 and JDK 1.8. The steps we followed to fix this issue are

 

1. Go to the path: <jdk-path>/Contents/Home/jre/lib/security (Usually this'll be installed in /Library/Java/JavaVirtualMachines/jdk1.8.0_102-b14.jdk/Contents/Home/jre/lib/security)

2. Go to https://www.oracle.com/java/technologies/javase-jce8-downloads.html, agree to the Terms & Conditions, and download & extract the zip file.

3. Copy the files in this zip file, and paste them into your security folder, replacing these two files.

  • local_policy.jar
  • US_export_policy.jar

Avatar

Community Advisor

Hi @chinmayis865517 , 

I have faced this issue recently when I tried connecting to other host. 

Issue is due to the server is trying to find the valid SSL certificate. 

This happens when your java version is older or when your server does not recognize the root certificate authority(CA) 

If you can access the HTTPS URL in your browser then it is possible to update Java to recognize the root CA.

In order to fix the issue please for the below steps. 

1. Launch the host which you are trying to connect in the browser. 

2. Download the certificate. 

3.Using the keytool command update the downloaded cert to java cert. Default path of java cert will be jre/lib/security/cacerts.

Below command will help you to update the cert file. 

keytool -import -alias example -keystore /path/to/cacerts -file example.crt

This will fix your issue. 

Below article explains the steps in detail on how to add certs. 

https://magicmonster.com/kb/prg/java/ssl/pkix_path_building_failed/

 

 

Avatar

Community Advisor
@chinmayi This type of issue occurs if you are trying to access anything from office network i.e. either LAN or VPN or if your office laptop/system has any software installed which prevents it. We have seen similar issue while building a new project where it tries to download the dependencies to local m2 folder as well. I will suggest to try it on personal system else try from disconnecting from VPN i.e. from public internet and you will not see this issue anymore. If still the issue persists you need to reach out to network support team to whitelist the address and it will start working. Hope this helps!