Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3184

SMTP destination and Keystore

$
0
0

Dear all,

 

I have Java application running in Hana Cloud Platform, and some time its send notifications by email using a SMTP server.

 

I have created a SMTP destination, and every works fine running locally in my PC, but when I deploy the APP on hanaondemand, I get  the following error

 

javax.mail.MessagingException: Exception reading response;

  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

at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:1611)

 

I think that the exception it is raised because Hana server doesn't recognize the SMTP server certificate, it does ?

 

Can you tell me if there a way to include this certificate into the TrustStore  validation chain used by Hana Server?

 

The documentation explain how to upload a JKS certificate for HTTPS connection.

Can I use this tool to upload the JKS certificate of the SMTP server?

 

And finally, which kind of JKS file is needed: the TrustStore containing the server certificate, or I have to include the root CA certificate also?

 

Thanks,


Viewing all articles
Browse latest Browse all 3184

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>