Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8637317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:27:01+00:00 2026-06-12T10:27:01+00:00

When I validate a signature, that I have created before using the same keystore

  • 0

When I validate a signature, that I have created before using the same keystore (and XA), the following exception arises:

Verification failed for property ‘SigningCertificate’: SigningCertificate property contains one or more certificates that are not part of the certification path.

I’m using the following cert-chain:

  1. root-CA (globalsign),
  2. intermediate certificate
  3. company certificate
  4. project certificate

All certificate are stored in the used keystore.

However, when trying the same thing with a self-signed certificate, only it worked, I just needed to put the certificate in the certs-and-crls-directory, too.

KeyingDataProvider:

new FileSystemKeyStoreKeyingDataProvider(KeyStore.getDefaultType(),
    "D:\...\signing.keystore", 
    new FirstCertificateSelector(),
    new DirectStorePasswordProvider("pass"),
    new DirectKeyPasswordProvider("pass"), true);

CertificateValidationProvider:

FileSystemDirectoryCertStore certStore = new FileSystemDirectoryCertStore("D:\...\certs");
CertificateValidationProvider certValidator = new PKIXCertificateValidationProvider(
        loadKeystore(), 
        false, // should be true, when validation works.
        certStore.getStore());

private KeyStore loadKeystore() {
    // deleted exception handling for readability, here
    KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());
    FileInputStream keystoreInStream = new FileInputStream("D:\...\verification.keystore");
    keyStore.load(keystoreInStream, "pass".toCharArray());
    return keyStore;
}

Feedback on keystores

The signing-keystore contains all 4 certificates. The verification-keystore contains the root-certificate (globalsign-root-ca), only. The certs-directory contains all certificates but the root (globalsign-root-ca). Then I get the following error:

Caused by: sun.security.provider.certpath.SunCertPathBuilderException:
unable to find valid certification path to requested target

When using the same keystore as for signing (a file-system-copy) then I get the error:

Caused by:
xades4j.verification.SigningCertificateCertsNotInCertPathException:
Verification failed for property ‘SigningCertificate’:
SigningCertificate property contains one or more certificates that are
not part of the certification path.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T10:27:03+00:00Added an answer on June 12, 2026 at 10:27 am

    I finally figured it out (i.e. a colleague helped me to).
    The certificate/key (#3), I used to sign my self-created keypair (#4) with, was not allowed to sign other certificates. Although creating the signature was possible without any error, I got the error message unable to find valid certification path to requested target when verifying the signature, which was pretty misleading.

    As a ‘solution’, I only used certificates #1-3, and used the private key of #3 to create the signature.

    @lgoncalves thanks for your enduring help.

    P.S.: I get the same error message with my working setup, when I configure CRLs enabled, but do not provide all of them (i.e. one CRL issued by #2 and one issued by #1, when verifying a signature generated with #3).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying validate an X.509 certificate received over a network. I have understood that
How can i validate in .Net C# a SAML signature created in Java? Here
If i have a system app on an Android with the same package signature
I have a function, void Validate() , that contains all my validation logic for
I have a XML document.I am signing a part of document using xmlsignature. Before
I was trying to validate an XML signature. The validation according to this tutorial
I have to validate two SAML 2.0 assertion signatures. I can parse out all
I validate in two ways - using spring validator for custom validation and javax.validation
I'm trying to validate a simple XML file against an XML schema using the
I want to validate mathematical expressions using regular expression. The mathematical expression can be

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.