Skip to content

Signing a jar file tells me "Failed to load certificate from" #246

Answered by obones
obones asked this question in Q&A
Discussion options

You must be logged in to vote

I just did, and it does not change the result.
However, I finally found what was wrong: Using the version alias!
If I give KeyName/cryptoKeyVersions/1 as the last argument, I get the "Failed to load certificate from" error. But if I only give KeyName then it successfully signs the JAR.
There are warnings, but I'm quite confident they don't come from your code:

The signer's certificate chain is invalid. Reason: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

POSIX file permission and/or symlink attributes detected. These attributes are ignored when signing and are not protected by the signat…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@ebourg
Comment options

@obones
Comment options

@ebourg
Comment options

@obones
Comment options

Answer selected by ebourg
@ebourg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants