Page 1 of 1

java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty

Posted: Tue Nov 06, 2018 11:12 am
by Support_Josh
Question:
I am receiving the error "java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty" when using an Amazon S3 Bucket resource (or any resource using SSL certificates) that I just created. What is the "trustAnchors" parameter and how can I set it?

Answer:
The trustAnchors parameter is a reference to the KMS key vault or the Trust Store that we are using when validating certificate chains for SSL connections within different resources. If there is a certificate that is missing, or a blank key store in this case, the error "java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty" will be thrown. You need to make sure all necessary certificates (root and intermediate) are added to the trusted certificates location in MFT.