# Struggling with the Module Signer

**URL:** <https://forum.inductiveautomation.com/t/struggling-with-the-module-signer/24906>\
**Category:** Module Development\
**Created:** [May 10, 2019, 8:46pm UTC](https://forum.inductiveautomation.com/t/struggling-with-the-module-signer/24906 "2019-05-10T20:46:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![fyousuf](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@fyousuf](https://forum.inductiveautomation.com/u/fyousuf)\
**Post date:** [May 10, 2019, 8:46pm UTC](https://forum.inductiveautomation.com/t/struggling-with-the-module-signer/24906/1 "2019-05-10T20:46:20Z")

</div>

I’ve been struggling with the module signing tool (to test the sdk examples), and I have very little JAVA experience. After running mvn package on this version of the signer:

[https://github.com/inductiveautomation/module-signer/tree/java-11](https://github.com/inductiveautomation/module-signer/tree/java-11)

I receive this error in regards to PKCS11:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile on project module-signer: Compilation failure  
[ERROR] /C:/Users/fas/module-signer/src/main/java/com/inductiveautomation/ignitionsdk/ModuleSigner.java:[126,70] incompatible types: java.lang.String cannot be converted to sun.security.pkcs11.Config

Any help is much appreciated.

---

<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 10, 2019, 8:55pm UTC](https://forum.inductiveautomation.com/t/struggling-with-the-module-signer/24906/2 "2019-05-10T20:55:07Z")

</div>

I’m pretty sure you actually have the master branch checked out but are trying to compile with Java 11.

---

<div class="post-metadata">

**Author:** ![fyousuf](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@fyousuf](https://forum.inductiveautomation.com/u/fyousuf)\
**Post date:** [May 10, 2019, 9:10pm UTC](https://forum.inductiveautomation.com/t/struggling-with-the-module-signer/24906/3 "2019-05-10T21:10:42Z")

</div>

I’ve double checked the branch, and it seems to be the java-11 branch. Am I possibly skipping a step when compiling? I’ve copied the repository using Git, downloaded JDK 12, and ran mvn package to the repository’s file path.

---

<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 10, 2019, 9:16pm UTC](https://forum.inductiveautomation.com/t/struggling-with-the-module-signer/24906/4 "2019-05-10T21:16:33Z")

</div>

It’s the exact error I get when I check out the master branch and set my JAVA\_HOME to point to JDK 11…

`mvn clean package` runs with no issues when I have the `java-11` branch checked out.

If you’re sure you’re on that branch, can you do a pull or make sure HEAD is `9357fdf`?

```auto
kevin@Kevins-2018-MacBook-Pro ~/D/I/module-signer> git branch -v
* java-11 9357fdf Java 11 Support, not backwards compatible
  master 7a3df1e Add support for private keys from PKCS11 sources

```

---

<div class="post-metadata">

**Author:** ![fyousuf](https://avatars.discourse-cdn.com/v4/letter/f/ee59a6/32.png) [@fyousuf](https://forum.inductiveautomation.com/u/fyousuf)\
**Post date:** [May 13, 2019, 2:54pm UTC](https://forum.inductiveautomation.com/t/struggling-with-the-module-signer/24906/5 "2019-05-13T14:54:08Z")

</div>

Thanks for the help! It looks like cloning the repository gave me an issue? I downloaded the branch and it builds fine.

---

<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 13, 2019, 3:00pm UTC](https://forum.inductiveautomation.com/t/struggling-with-the-module-signer/24906/6 "2019-05-13T15:00:58Z")

</div>

Cloning the repository leaves you on the default branch, it doesn’t matter what page you were looking at on GitHub.
