Help with sign jar files #178
-
Hi there, Yes, I know this library doesn't not support JAR files, but I got stuck after we bought a new Code Sign EV certificate in token format, and this one was installed on Google HSM/KMS platform. Searching in web, all content about signature of applications points to this library, and I really don't know what I can do to solve this. On older format, I had a simple Ant task to sign all my jars, like this:
I tried to do the same using your library, but I got an error about unsupported file format:
Could anyone help me or suggest some content so I can sign my jar files? Or is there a Jenkins plugin that does this? Or, is it possible to create a new JKS to continue to use the ant task above? What I have:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 16 replies
-
You can no longer use a JKS keystore, EV certificates are either cloud based or provided on a hardware token. Jsign doesn't support jar files, so you can't use the CLI syntax. However Jsign also provides an API that could be useful in this case:
|
Beta Was this translation helpful? Give feedback.
-
@ebourg , As your project is widely known about application sign, what do you think add this new feature to the official docs? |
Beta Was this translation helpful? Give feedback.
I have implemented a provider that can be used with jarsigner, could you give it a try? Just build the latest version from the Git repository and run this (with Java 11 or higher):