Getting error on Test configuration by sending test e-mail for Jenkins

Viewed 29

I am getting error on Jenkins Email test.I have created the app password for gmail and used in jenkin SMTP Authentication in Test configuration by sending test e-mail .But still getting error as

sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

    at java.base/sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:141)

enter image description here

1 Answers

The error is complaining about the missing public certificate of the Gmail server. You can try importing the Gmail SMTP servers' public cert to the Jenkins Keystore or you can try disabling SSL in the Mail configurations.


Update

Since you are connecting to Gmail, typically the certificates will be available in your JDK installation. So there could be an issue with the JDK installation. Check the answers in this question.

Related