Skip to main content
Solved

Could not Connect to SMTP Host - SSLHandshakeException

  • December 6, 2023
  • 1 reply
  • 339 views

baris.halici
Hero (Customer)
Forum|alt.badge.img+12

Hello, Dear Community Members,

I hope everything's okay.

IFS cannot send e-mail. I see the error javax.net.ssl.SSLHandshakeException in the application messages.
I have analysed similar messages in the community (@Yasas Kasthuriarachchi @dsj) but I can't find any result. 

Can you help me what to do?

 

Error while sending data... 
Caused by: javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465 
Caused by: 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 
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

 

 

Best regards

Barış

Best answer by baris.halici

Hello Community,

The relevant issue has been resolved by me. Details are as follows.

1-) Export the certificate file with a web browser

2-) Go to IFS_HOME/java/jre/bin in Command Prompt

3-) Install the certificate file with keytool.exe

keytool -import -noprompt -trustcacerts -alias <IFS_INSTANCE_NAME> -file <FILE_PATH_TO_THE_CERTIFICATE_FILE> -keystore ..\lib\security\cacerts -storepass changeit

Source: https://magicmonster.com/kb/prg/java/ssl/pkix_path_building_failed/

 

Regards

Barış

View original
Did this topic help you find an answer to your question?

1 reply

baris.halici
Hero (Customer)
Forum|alt.badge.img+12
  • Author
  • Hero (Customer)
  • 127 replies
  • Answer
  • November 22, 2024

Hello Community,

The relevant issue has been resolved by me. Details are as follows.

1-) Export the certificate file with a web browser

2-) Go to IFS_HOME/java/jre/bin in Command Prompt

3-) Install the certificate file with keytool.exe

keytool -import -noprompt -trustcacerts -alias <IFS_INSTANCE_NAME> -file <FILE_PATH_TO_THE_CERTIFICATE_FILE> -keystore ..\lib\security\cacerts -storepass changeit

Source: https://magicmonster.com/kb/prg/java/ssl/pkix_path_building_failed/

 

Regards

Barış


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings