Add the jsign.certfile system property to feed an additional certificate with the JCA provider #215
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Maybe related to #119
Background
We have developed an Android app and Google requires us to sign our build artifact when we upload it to Google Play Console.
For better security, we'd like to sign our build artifact with Google Cloud KMS and we found this excellent product.
We composed the following command to sign our aab with Cloud KMS.
However, it does not work with the following error.
I read the code of jsign and found that the GOOGLECLOUD provider needs the public key to sign but Cloud KMS does not store certificates.
In this PR, we'd like to propose to add a way to feed an additional certificate to Jsign when it is used as a JCA provider.
Overview
When Jsign is used as a JCA provider, namely with jarsigner, we can provide additional options via the system property of Java.
Adding this PR enable users to sign JAR artifacts with jarsigner and Cloud KMS by the following command.
Thank you in advance!
Best,