-
I'm trying to figure out how to extend our use of Azure Trusted Signing for signing .jar files and I believe the JCA in the 7 dev branch should allow me to accomplish this but I'm struggling to get this working (I'm also from an infrastructure background and not done java dev since university). Firstly the good, I was able to compile the 7.0 package and use the jsign cli to sign a PowerShell script using Azure Trusted Signing as the keystore - this is a current use case I already had working using the MS signtool, so that's what I tried first. However I cannot get the parameters right for using jarsigner and the JCA. I think the issue is adding the java.sql module, if I don't include those parameters I get an error that module is missing, if I do add them I get a Module java not found error. PS E:\Signing> & jarsigner --debug -J-cp -JE:\Signing\jsign.jar -J--add-modules -Jjava.sql -providerClass net.jsign.jca.JsignJcaProvider -providerArg eus.codesigning.azure.net -storepass $accessToken.accessToken -keystore NONE -storetype TRUSTEDSIGNING jHelloWorld.jar Account/Profile Error occurred during initialization of boot layer The error without attempting to add the java.sql module: jarsigner.exe : Exception in thread "main" java.lang.NoClassDefFoundError: java/sql/Date Anyone see what I'm doing wrong here, or point me in the right direction? Thanks Phil |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
What JDK did you use? If you are in a hurry you could use Java 8, it doesn't require the |
Beta Was this translation helpful? Give feedback.
Can't see why but I simply needed to wrap the java.sql module name in double quotes and it all worked.