Skip to main content
Solved

Could not Connect to SMTP Host - SSLHandshakeException

  • December 6, 2023
  • 1 reply
  • 378 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ış

1 reply

baris.halici
Hero (Customer)
Forum|alt.badge.img+12
  • Author
  • Hero (Customer)
  • 128 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ış