Email configuration issue

This is the root cause:
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

Some workaround solutions here:

  1. Check if you have any antivirus application which is blocking Katalon Studio application
    https://stackoverflow.com/questions/17098281/my-java-program-stopped-sending-emails-using-my-gmail-account

OR

  1. Download InstallCert.java in this place: https://github.com/escline/InstallCert

Compile it using this Windows command line:

javac InstallCert.java

Execute the following windows command line one by one:

java InstallCert <your_web_service_host>
keytool -exportcert -alias <your_web_service_host>-1 -keystore jssecacerts -storepass changeit -file <your_web_service_host>.cer
keytool -importcert -alias <your_web_service_host>.net -keystore “jre\lib\security\cacerts” -storepass changeit -file <your_web_service_host>.cer

Example:
java InstallCert katalon.com

keytool -exportcert -alias staging.shoutforgood.net-1 -keystore jssecacerts -storepass changeit -file kataloc.com.cer

keytool -importcert -alias staging.shoutforgood.net -keystore “D:\Katalon_Studio_Windows_64-4.5\jre\lib\security\cacerts” -storepass changeit -file katalon.com.cer

1 Like