# Trouble to sign modulein 7.8.3

**URL:** <https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698>\
**Category:** Ignition\
**Created:** [May 19, 2016, 3:19pm UTC](https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698 "2016-05-19T15:19:17Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [May 19, 2016, 3:19pm UTC](https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698/1 "2016-05-19T15:19:17Z")

</div>

I trie to module signer tools for signing modules for 7.8.3 :  
with the followind command :

```auto
java -jar module-signer.jar -keystore=D:/install/Ignition/export_certif.jks -keystore-pwd=siai -alias=byes-siai -alias-pwd=siai -chain=D:/install/Ignition/byes_siai.p7b -module-in=D:/install/Ignition/SNMP-Basic-Driver-unsigned-1.0.6.modl -module-out=D:/install/Ignition/SNMP-Basic-Driver-signed-1.0.6.modl
```

I have an error :

```auto
aucun attribut manifest principal dans module-signer.jar
```

```auto
"No Main Manifest Attribute" in module-signer.jar
```

Could you please post the module-signer.jar.  
I’ve build It with intelliJ/maven from [github.com/inductiveautomation/module-signer](https://github.com/inductiveautomation/module-signer)

module-signer-1.0.0-SNAPSHOT.jar rename to module-signer.jar

but it doesn’t works … No main class are set into the manifest…

![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:")

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 19, 2016, 3:49pm UTC](https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698/2 "2016-05-19T15:49:16Z")

</div>

I’ve just updated the module-signer project on Github. Pull, and then run ‘mvn clean package’ again.

You should find two jars in the target directory, one that has “-jar-with-dependencies” in the name. That jar should be runnable now.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [May 19, 2016, 4:15pm UTC](https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698/3 "2016-05-19T16:15:36Z")

</div>

Thanks kevin,  
could you please post here the module-signer.jar.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [May 19, 2016, 4:24pm UTC](https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698/4 "2016-05-19T16:24:11Z")

</div>

Ok !  
I can sign a module with the :  
module-signer-1.0.0-SNAPSHOT-jar-with-dependencies.jar  
generated and a self signed certificate.

My module is in Trial, is in Free mode.  
Will check if it’s ok with a gateway waith a valide licence.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [May 19, 2016, 4:36pm UTC](https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698/5 "2016-05-19T16:36:36Z")

</div>

In 7.8.3 the module hook has to override the isFreeModule() method and return true/false.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [May 19, 2016, 4:55pm UTC](https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698/6 "2016-05-19T16:55:17Z")

</div>

could you post the link for javadoc with this method ?  
have not the last sdk javadoc ? only 7.7.8 seems to be available.

With IntelliJ/Maven, can we build right now the module with this add.  
Need to very quickly upgrade 2 modules for 7.8.3 with FREE licence.

What is the code to add for a FREE module : ![:scratch:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/76d1620bec252bfac07050c889ff5a91dc8a9c25.gif ":scratch:")  
into public class ModuleHook extends AbstractDriverModuleHook  
for a module based with AbstractDriverModuleHook ?

into public class AuditLogSplitterGatewayHook extends AbstractGatewayModuleHook  
for a module based with AbstractGatewayModuleHook ?

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [May 19, 2016, 7:11pm UTC](https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698/7 "2016-05-19T19:11:41Z")

</div>

When I add the following code in ModuleHook class

> [@](#):
>
> @Override  
> public boolean isFreeModule(){  
> return true;  
> }

I have a compilation error.  
When I decompile interface GatewayModuleHook into intellij,  
I don't find isFreeModule() method described into 7.7.8 javadoc.  
data gathered from maven are from SDK 7.7.1...,

I use :

> [@](#):
>
> ```
> <groupId>com.inductiveautomation.ignitionsdk</groupId>
> <artifactId>ignition-maven-plugin</artifactId>
> <version>1.0.9</version>
> 
> ```

and

> [@](#):
>
> ```
> <properties>
> <ignition-sdk-version>7.7.1</ignition-sdk-version>
> </properties>
> 
> ```

How to use 7.7.8 or 7.8.3 to be able to compile the module with isFreeModule() !!!

if I change the sdk version to 7.7.8 into my pom, I have thhe following compilation error

> [@](#):
>
> [WARNING] The POM for com.inductiveautomation.ignitionsdk:ignition-common:pom:7.7.8 is missing, no dependency information available  
> [WARNING] The POM for com.inductiveautomation.ignitionsdk:gateway-api:pom:7.7.8 is missing, no dependency information available  
> [WARNING] The POM for com.inductiveautomation.ignitionsdk:driver-api:pom:7.7.8 is missing, no dependency information available

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [May 19, 2016, 7:38pm UTC](https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698/8 "2016-05-19T19:38:44Z")

</div>

With :

public boolean isFreeModule(){  
return true;  
}

without @Override😊  
compilation is OK, with 7.7.1 sdk !

---

<div class="post-metadata">

**Author:** ![thanthm](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@thanthm](https://forum.inductiveautomation.com/u/thanthm)\
**Post date:** [December 11, 2020, 3:50am UTC](https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698/9 "2020-12-11T03:50:09Z")

</div>

I downloaded module-signer project zip file. When I extracted the zip file and run the “mvn clean package” command as you mentioned, I found this type of error shown in below. How to solve that case.

[INFO] Changes detected - recompiling the module!  
[INFO] Compiling 3 source files to C:\Users\thanthm\eclipse-workspace\module-signer-master\target\classes  
[INFO] ------------------------------------------------------------------------  
[INFO] BUILD FAILURE  
[INFO] ------------------------------------------------------------------------  
[INFO] Total time: 01:34 min  
[INFO] Finished at: 2020-12-11T11:46:16+08:00  
[INFO] ------------------------------------------------------------------------  
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project module-signer: Fatal error compiling: invalid flag: --release -\> [Help 1]  
[ERROR]  
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.  
[ERROR] Re-run Maven using the -X switch to enable full debug logging.  
[ERROR]  
[ERROR] For more information about the errors and possible solutions, please read the following articles:  
[ERROR] [Help 1] [http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException](http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException).

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 11, 2020, 1:04pm UTC](https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698/10 "2020-12-11T13:04:24Z")

</div>

I think you’re getting this error because you’re trying to build it with JDK 8 instead of JDK 11+.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 11, 2020, 1:06pm UTC](https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698/11 "2020-12-11T13:06:07Z")

</div>

Ooo! Probably have to use an older checkout of the module-signer, then, as you need to use JDK8 to build for old Ignition.

---

<div class="post-metadata">

**Author:** ![thanthm](https://avatars.discourse-cdn.com/v4/letter/t/dec6dc/32.png) [@thanthm](https://forum.inductiveautomation.com/u/thanthm)\
**Post date:** [December 14, 2020, 3:54am UTC](https://forum.inductiveautomation.com/t/trouble-to-sign-modulein-7-8-3/11698/12 "2020-12-14T03:54:46Z")

</div>

yes. I can compile the module-signed project with jdk 11. But the module can not used because Module “client-designer-gateway-archetype Ignition Module” requires at least Ignition version 8.0.0 (b0). May I know how to signed the module for ignition verion 7.9.16. Thanks for your guidance.
