By Christopher Alton.
Additional steps if you have already done the 1st certificate troubleshooting step for your automation tools (Eclipse/IntelliJ)
The Java Keystore contains several known certificates. In case the MobileCloud uses a certificate that does not exist in the keystore, you will need to add it. Otherwise, the following errors will appear when running the test.
- Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- This can be done from the following article, Certificate Errors With Selenium
If you have performed the certificate store verification from the linked article, you may need an intermediate SSL certificate and any security certificates from your company.
You need to confirm that the mobile cloud certificates have been added to the JAVA keystore for your Selenium/Eclipse AND also any SSL security certificates have been added. You may need your IT or IT Security to assist you with these certificates.
The Last Step (if necessary):
If all else fails and you have imported the JAVA security certificates into your JAVA keystore, and this issue fails, the last step is to involve your IT to whitelist the URL and IP address of the cloud. This should allow for access to the cloud, without using the private/public key authentication (PKIX) methods.