Module signer issue

Hi,
When signing our module we are now getting this error.

Exception in thread "main" org.apache.commons.cli.UnrecognizedOptionException: Unrecognized option: -jar
        at org.apache.commons.cli.DefaultParser.handleUnknownToken(DefaultParser.java:347)
        at org.apache.commons.cli.DefaultParser.handleConcatenatedOptions(DefaultParser.java:689)
        at org.apache.commons.cli.DefaultParser.handleShortAndLongOption(DefaultParser.java:520)
        at org.apache.commons.cli.DefaultParser.handleToken(DefaultParser.java:243)
        at org.apache.commons.cli.DefaultParser.parse(DefaultParser.java:120)
        at org.apache.commons.cli.DefaultParser.parse(DefaultParser.java:76)
        at org.apache.commons.cli.DefaultParser.parse(DefaultParser.java:60)
        at com.inductiveautomation.ignitionsdk.ModuleSigner$Main.main(ModuleSigner.java:118)

we have never come across this before, has anyone else?

What is the full command are you running?

java -jar module-signer.jar -keystore=hanley.pfx -keystore-pwd=hanley -alias=hanley -alias-pwd=hanley -chain=hanley.p7b -module-in=Hanley-Energy-EPMS-unsigned.modl -module-out=Hanley-Energy-EPMS-signed.modljava -jar module-signer.jar -keystore=hanley.pfx -keystore-pwd=hanley -alias=hanley -alias-pwd=hanley -chain=hanley.p7b -module-in=Hanley-Energy-EPMS-unsigned.modl -module-out=Hanley-Energy-EPMS-signed.modl

It’s the same sign-module.bat file we’ve ran since the start

You have an extra -jar module-signer.jar in the arguments to the module signer itself.

I don't know how that ever ran or why it stopped now.

edit: looking closer it seems you just copy/pasted the command twice?

thank you, that has solved a lot of headache, must have been copied by accident somewhere along the line

1 Like