Error - trustAnchors parameter must be non-empty
This bizarre message means that the trustStore
you specified was:
- empty,
- not found, or
- couldn't be opened
- (due to wrong/missing
trustStorePassword
, or - file access permissions, for example).
- (due to wrong/missing
See also @AdamPlumb's answer below.
Client Authentication Tomcat - trustAnchors parameter must be non-empty
Okay - the problem was the certificate was created using JDK 1.8 and the tomcat was running with JRE 1.7 - for whatever reason this caused an issue, so the fix was to use JRE 1.8 and now everything works okay.
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty on Linux, or why is the default truststore empty
The standard Sun JDK for linux has an absolutely ok cacerts and overall all files in the specified directory. The problem is the installation you use.
InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty on upgrading from Tomcat 7
Turns out the keystore requires a TrustedCertEntry and it only has a PrivateKeyEntry. I imported one global trusted certificate using keytool and the issue is resolved.
Error - trustAnchors parameter must be non-empty
This bizarre message means that the trustStore
you specified was:
- empty,
- not found, or
- couldn't be opened
- (due to wrong/missing
trustStorePassword
, or - file access permissions, for example).
- (due to wrong/missing
See also @AdamPlumb's answer below.
javax.net.ssl.SSLException - the trustAnchors parameter must be non-empty
You haven't mentioned which JDK or OS/distro you are using, but it's possible that ca-certificates-java
is not a dependency in the Oracle JDK/JRE so this must be explicitly installed.
You might need to run
sudo /var/lib/dpkg/info/ca-certificates-java.postinst configure
See also
Error - trustAnchors parameter must be non-empty
Error - trustAnchors parameter must be non-empty
This bizarre message means that the trustStore
you specified was:
- empty,
- not found, or
- couldn't be opened
- (due to wrong/missing
trustStorePassword
, or - file access permissions, for example).
- (due to wrong/missing
See also @AdamPlumb's answer below.
Related Topics
Why Is Processing a Sorted Array Faster Than Processing an Unsorted Array
Signing Pdfs on a Server Document Using a Signature from the User
Singletons Vs. Application Context in Android
Why Is It Considered a Bad Practice to Omit Curly Braces
How to Simulate the C++ 'Friend' Concept in Java
How to Check Internet Access on Android? Inetaddress Never Times Out
What Is a Stringindexoutofboundsexception - How to Fix It
Calling a Java Method from C++ in Android
How to Send Http Request in Java
Converting HTML to Pdf Using Itext
How to "Scan" a Website (Or Page) For Info, and Bring It into My Program
Noclassdeffounderror - Eclipse and Android
One Time Login in App - Firebaseauth
Firebaselistadapter Not Pushing Individual Items For Chat App - Firebase-Ui 3.1
What Is Pecs (Producer Extends Consumer Super)
Firebase Ui Authentication With Google Fails With Message (Code:10 Message:10)