[JIRA] (OSJ-379) "trustAnchors parameter must be non-empty" failure in httpClient
Paul B. Henson (Jira)
jira at shibboleth.atlassian.net
Thu May 18 01:52:14 UTC 2023
Paul B. Henson ( https://shibboleth.atlassian.net/secure/ViewProfile.jspa?accountId=5b58f937ffd0a32d7917a0df ) *commented* on OSJ-379 ( https://shibboleth.atlassian.net/browse/OSJ-379?atlOrigin=eyJpIjoiYzFjYTE0NTkzNjBlNGE2ODhmNDhjYjVkZjg0NzVhNmEiLCJwIjoiaiJ9 )
Re: "trustAnchors parameter must be non-empty" failure in httpClient ( https://shibboleth.atlassian.net/browse/OSJ-379?atlOrigin=eyJpIjoiYzFjYTE0NTkzNjBlNGE2ODhmNDhjYjVkZjg0NzVhNmEiLCJwIjoiaiJ9 )
We’re running Rocky Linux 8.7 and using the RHEL openjdk:
java-11-openjdk-11.0.19.0.7-1.el8_7.x86_64
My search for the error only found issues that were reproducible and always failed on the first call, basically where an invalid trust store was passed in. I couldn’t find any other mention of an issue where it works fine, then suddenly breaks, then works fine again when restarted with no changes 8-/.
Following the nested chain of symlinks:
lrwxrwxrwx 1 root root 21 Apr 19 20:53 /etc/java/java-11-openjdk/java-11-openjdk-11.0.19.0.7-1.el8_7.x86_64/li
b/security/cacerts -> /etc/pki/java/cacerts
lrwxrwxrwx 1 root root 40 Sep 13 2022 /etc/pki/java/cacerts -> /etc/pki/ca-trust/extracted/java/cacerts
r r r - 1 root root 156478 Sep 22 2022 /etc/pki/ca-trust/extracted/java/cacerts
That’s just a local file. I can’t think of any reason why it would suddenly become inaccessible. I tried running strace on the java process once while it was failing and didn’t see any attempts to open a certs file.
Scott says he doesn’t want any idp components automatically using the system trust store, so disabling tls verification works for me.
Thanks for looking into it.
( https://shibboleth.atlassian.net/browse/OSJ-379#add-comment?atlOrigin=eyJpIjoiYzFjYTE0NTkzNjBlNGE2ODhmNDhjYjVkZjg0NzVhNmEiLCJwIjoiaiJ9 ) Add Comment ( https://shibboleth.atlassian.net/browse/OSJ-379#add-comment?atlOrigin=eyJpIjoiYzFjYTE0NTkzNjBlNGE2ODhmNDhjYjVkZjg0NzVhNmEiLCJwIjoiaiJ9 )
Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100225- sha1:d57183e )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shibboleth.net/pipermail/commits/attachments/20230518/04b06bc6/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-comment-icon-429c8290-e766-4ea3-a68d-a398471335c8
Type: image/png
Size: 1084 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230518/04b06bc6/attachment-0003.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-avatar-28cca519-81c7-4a78-ac08-a59665010f70
Type: image/png
Size: 345 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230518/04b06bc6/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jira-generated-image-static-footer-desktop-logo-ef1fd92d-4bdb-4eab-a954-aaac76c5a7da
Type: image/png
Size: 10805 bytes
Desc: not available
URL: <http://shibboleth.net/pipermail/commits/attachments/20230518/04b06bc6/attachment-0005.png>
More information about the commits
mailing list