# Slack connection failed with no reason. Error: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

**URL:** <https://forum.katalon.com/t/slack-connection-failed-with-no-reason-error-javax-net-ssl-sslhandshakeexception-pkix-path-building-failed-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/80894>\
**Category:** Integrations\
**Tags:** plugins\
**Created:** [November 23, 2022, 9:15am UTC](https://forum.katalon.com/t/slack-connection-failed-with-no-reason-error-javax-net-ssl-sslhandshakeexception-pkix-path-building-failed-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/80894 "2022-11-23T09:15:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![syamimi.adenan](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/syamimi.adenan/32/20464_2.png) [@syamimi.adenan](https://forum.katalon.com/u/syamimi.adenan)\
**Post date:** [November 23, 2022, 9:15am UTC](https://forum.katalon.com/t/slack-connection-failed-with-no-reason-error-javax-net-ssl-sslhandshakeexception-pkix-path-building-failed-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/80894/1 "2022-11-23T09:15:52Z")

</div>

Hi all,

I’m getting below error when trying to connect to Slack (The full log is in the attachment).  
It was working fine before.  
My KS version is 8.5.2.

Appreciate if anyone can help on this.  
Thank you.

com.katalon.plugin.slack.SlackException:  
at com.katalon.plugin.slack.SlackUtil.sendMessage(SlackUtil.java:44)  
at com.katalon.plugin.slack.SlackPreferencePage.lambda$testSlackConnection$3(SlackPreferencePage.java:100)  
at java.lang.Thread.run(Thread.java:748)  
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target  
at sun.security.ssl.Alert.createSSLException(Alert.java:131)

 ![Slack connection failed](https://europe1.discourse-cdn.com/katalon/original/3X/3/4/3468e31d6c6ba173dfd41db7c208cb97f4e79cc2.png)  
[Log.txt](https://forum.katalon.com/uploads/short-url/kbO3c5j02Fc3n3l7BBW8VI2miLk.txt) (4.2 KB)

---

<div class="post-metadata">

**Author:** ![Elly\_Tran](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/elly_tran/32/21874_2.png) [@Elly\_Tran](https://forum.katalon.com/u/Elly_Tran)\
**Post date:** [November 24, 2022, 7:30am UTC](https://forum.katalon.com/t/slack-connection-failed-with-no-reason-error-javax-net-ssl-sslhandshakeexception-pkix-path-building-failed-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/80894/2 "2022-11-24T07:30:26Z")

</div>

Hi @syamimi.adenan ,

Thank you for giving us the informative log. According to [this article](https://blog.packagecloud.io/solve-unable-to-find-valid-certification-path-to-requested-target/), this error due to connection to Java library / framework. There are several reasons that might lead to this issue, therefore, carefully go through all of the following approaches if any could:

Try to double check the auth token correctly, whether you can access your Slack channel through browser (Chrome, Firefox, etc) or not. If all are correct, it is the certificate problem. If it cannot be accessable, it is network issue or firewal or VPN.

- Certificate problem: Please help us check your JRE version. If not the latest, please update it which corresponded to KS 8.5.2.
- Network issue: Try not to connect VPN if you are using secured network. Reach out some solutions suggested [here](https://stackoverflow.com/questions/21076179/pkix-path-building-failed-and-unable-to-find-valid-certification-path-to-requ).

Thank you!

---

<div class="post-metadata">

**Author:** ![bharathi.a](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/bharathi.a/32/24695_2.png) [@bharathi.a](https://forum.katalon.com/u/bharathi.a)\
**Post date:** [October 17, 2023, 5:23pm UTC](https://forum.katalon.com/t/slack-connection-failed-with-no-reason-error-javax-net-ssl-sslhandshakeexception-pkix-path-building-failed-sun-security-provider-certpath-suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/80894/3 "2023-10-17T17:23:02Z")

</div>

@syamimi.adenan

This is due to a security certificate issue you have to add the certificate to the slack Url you are using a

1. download the certificate from the Slack and follow my workaround here

in the below thread i added it for remote but u can use the same to download the certificate from slack

> [@Unable to start application when try to do object spy in remote device](http://forum.katalon.com/t/unable-to-start-application-when-try-to-do-object-spy-in-remote-device/99177/5):
>
> Got a solution for this issue after spending my whole day. After spending a day, I did it phew. Solution: After updating/installing (now katalon is downloading as an exe) to the new katalon version in the JRE file under the C:\Users\userName.katalon\packages\Katalon\_Studio\_Windows\_64-8.6.8\Katalon\_Studio\_Windows\_64-8.6.8\jre\lib\security\cacerts SSL Certificate is missing To add that if you are using lambda test/ Pcloudy/ Browser stack/Kobiton/sauce labs you need to add the certificate to …
