Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bamboo SMTP unable to find valid certification path to requested target - why?

Matt Holmes January 17, 2013

I have Bamboo 4.1 installed on the same server as our JIRA 5.0.4 installation. JIRA has had working email notifications since the beginning, and is set up for SSL connections (HTTPS redirect included). Bamboo is set up for jira.mycompany.com:8085 and is not set up for SSL.

When I configure the SMTP settings in Bamboo, I get the following error:

The mail settings you entered were not valid. Error thrown was: javax.mail.MessagingException: Can't send command to SMTP host; nested exception is: 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

Which confuses me because bamboo isn't using certs?

My email server is Exchange 2010.

Any ideas?

2 answers

1 vote
Tiago Comasseto
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 14, 2013

Hi Matt,

Is your Exchange server configured for communication over SSL? If yes, then you'll need to import Exchange's certificate into the cacerts file of the Java installation that Bamboo is using. You can see more details on how check this here.

This is the example of the import command:

keytool -import -keystore ./jre/lib/security/cacerts -file server-certificate.crt

Also, after this, you can test if the connection over SSL is right using SSLPoke, as this example:

java -Djavax.net.ssl.trustStore=/opt/java/jre/lib/security/cacerts SSLPoke smtp.gmail.com 465

Once you have the certificate imported, you can restart your Bamboo instance and attempt to configure the SMTP server again.

I hope this helps.

Cheers

0 votes
Steve Thornhill
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2014

Matt,

Did you ever fix this - I've found a method that does work if you still need an answer

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events