In an environment where an SSE (like Cisco Umbrella) is deployed, attempts to connect to Amazon Athena from Tableau Desktop on MacOS result in a failure with the following error message:
PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Follow these steps to allow the embedded Java environment to recognize the SSE environment's certificates.
If importing the Root CA alone does not resolve the issue, an intermediate certificate is likely missing. Use one of the following methods to extract it:
Using OpenSSL: Run the following command in Terminal to view the certificate chain presented by the SSE. Replace <region> with your specific AWS region (e.g., us-east-1, ap-northeast-1):
echo QUIT | openssl s_client -connect athena.<region>.amazonaws.com:443 -showcerts
In the output, copy the block starting from -----BEGIN CERTIFICATE----- to -----END CERTIFICATE----- (typically the second block, which represents the intermediate CA) and save it as a text file (e.g., intermediate.crt).
Using a Web Browser: Navigate to https://athena.<region>.amazonaws.com in your web browser (it is okay if an access denied page appears). Click the padlock icon in the address bar, view the certificate details, select the intermediate certificate from the hierarchy, and export it as a file.
Open Terminal as an Administrator and use the keytool command to import the certificate.
Example for Apple Silicon, version 2025.1:
sudo "/Applications/Tableau Desktop (Apple silicon) 2025.1.app/Contents/Plugins/jre/bin/keytool" -importcert -file "/path/to/intermediate.crt" -keystore "/Applications/Tableau Desktop (Apple silicon) 2025.1.app/Contents/Plugins/jre/lib/security/cacerts" -alias "umbrella_intermediate" -storepass changeit
Note: When prompted with "Trust this certificate? [no]:", type yes (or y) and press Enter.
Completely close and restart Tableau Desktop to apply the configuration changes, then retry the connection to Amazon Athena.
If managing certificates on individual client machines is not feasible, work with your network administrator to add the Amazon Athena endpoint (athena.<region>.amazonaws.com) to the SSL Inspection Bypass list in your Cisco Umbrella (or SSE) settings. This prevents the certificate from being rewritten in the first place, effectively avoiding the error.
005318671

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.