Description
I'm submitting a…
- bug report
- feature request
- other
Short description of the issue/suggestion:
I'm setting up singing with an eToken, and sumbled about his line:
https://github.com/fvarrui/JavaPackager/blob/f01e4f0d5e89e70c3a31181cc1a9aeee445a0919/src/main/java/io/github/fvarrui/javapackager/utils/SignerHelper.java#L248
I put 'SunPKCS11' as Keystore, and this is listed in java.security
. But this lines checks if the provider/keystore starts with 'SunPKCS11-' (min the dash). There fore it is not accepted.
Is this intentional? I expected from the documentation that SunPKCS11 is the correct value there.
Sidenote: an upgrade to jsign 6 would be helpful, because it supports more option for etokens, to that a specified provider is not even needed anymore.
Steps to reproduce the issue/enhancement:
Attach eToken
pom:
<signing>
<storetype>PKCS11</storetype>
<keystore>SunPKCS11</keystore>
<storepass></storepass>
</signing>
What is the expected behavior?
signing without error
What is the current behavior?
Exception: io.github.fvarrui.javapackager.utils.SignerException: keystore should either refer to the SunPKCS11 configuration file or to the name of the provider configured in jre/lib/security/java.security
Please tell us about your environment:
- JavaPackager version: 1.6
- OS version: Windows 10
- JDK version: 17
- Build tool:
- Maven
- Gradle