# Exception when importing a self-signed module in 7.8.4b1

**URL:** <https://forum.inductiveautomation.com/t/exception-when-importing-a-self-signed-module-in-7-8-4b1/12055>\
**Category:** Module Development\
**Created:** [August 22, 2016, 7:52pm UTC](https://forum.inductiveautomation.com/t/exception-when-importing-a-self-signed-module-in-7-8-4b1/12055 "2016-08-22T19:52:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [August 22, 2016, 7:52pm UTC](https://forum.inductiveautomation.com/t/exception-when-importing-a-self-signed-module-in-7-8-4b1/12055/1 "2016-08-22T19:52:42Z")

</div>

Hi,

i just tried to import a module with a self-signed certificate to 7.8.4 beta 1. This fails with an ArrayIndexOutOfBoundsException.  
I created a simple key pair with KeyStoreExplorer. The p7b keychain was created with the ‘Export certificate chain’ function in KeyStoreExplorer.  
Any ideas what i am doing wrong?

`INFO | jvm 1 | 2016/08/22 21:39:29 | ERROR [ModuleInstallPage] [21:39:29,291]: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
INFO | jvm 1 | 2016/08/22 21:39:29 | java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 0
INFO | jvm 1 | 2016/08/22 21:39:29 | at java.util.Vector.get(Vector.java:748)
INFO | jvm 1 | 2016/08/22 21:39:29 | at com.inductiveautomation.ignition.gateway.util.GatewayUtils.getCertCommonName(GatewayUtils.java:519)
INFO | jvm 1 | 2016/08/22 21:39:29 | at com.inductiveautomation.ignition.gateway.web.pages.config.ModuleCertificateAcceptPage.<init>(ModuleCertificateAcceptPage.java:160)
INFO | jvm 1 | 2016/08/22 21:39:29 | at com.inductiveautomation.ignition.gateway.web.pages.config.ModuleInstallPage.eulaCertCheck(ModuleInstallPage.java:170)
INFO | jvm 1 | 2016/08/22 21:39:29 | at com.inductiveautomation.ignition.gateway.web.pages.config.ModuleInstallPage$1.onSubmit(ModuleInstallPage.java:62)
`

---

<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:** [August 22, 2016, 8:05pm UTC](https://forum.inductiveautomation.com/t/exception-when-importing-a-self-signed-module-in-7-8-4b1/12055/2 "2016-08-22T20:05:02Z")

</div>

Your certificate needs to have the Common Name (CN) defined. The one in this module only has email.

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://forum.inductiveautomation.com/u/chi)\
**Post date:** [August 22, 2016, 8:15pm UTC](https://forum.inductiveautomation.com/t/exception-when-importing-a-self-signed-module-in-7-8-4b1/12055/3 "2016-08-22T20:15:05Z")

</div>

Thank you, that solved the problem. ![:thumb_left:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e26afb081ddde6df016df6ee49159cf56aaca688.gif ":thumb\_left:")
