I was able to create the signed module.
But when I go to install in ignition gateway I get this error:
java.security.cert.CertificateParsingException: signed fields invalid
Hers log that pertains to error:
java.security.cert.CertificateParsingException: signed fields invalid
at java.base/sun.security.x509.X509CertImpl.parse(Unknown Source)
at java.base/sun.security.x509.X509CertImpl.(Unknown Source)
at java.base/sun.security.provider.X509Factory.parseX509orPKCS7Cert(Unknown Source)
at java.base/sun.security.provider.X509Factory.engineGenerateCertificates(Unknown Source)
at java.base/java.security.cert.CertificateFactory.generateCertificates(Unknown Source)
at com.inductiveautomation.ignition.common.util.SecurityUtils.parseX509Certificates(SecurityUtils.java:244)
at com.inductiveautomation.ignition.common.util.SecurityUtils.parseX509Certificates(SecurityUtils.java:218)
at com.inductiveautomation.ignition.gateway.web.pages.config.ModuleInstallPage.eulaCertCheck(ModuleInstallPage.java:116)
at com.inductiveautomation.ignition.gateway.web.pages.config.ModuleInstallPage$1.onSubmitInternal(ModuleInstallPage.java:71)
at com.inductiveautomation.ignition.gateway.web.components.CsrfPreventingForm.onSubmit(CsrfPreventingForm.java:67)
Check your keystore. That message normally means the certificate / keystore is malformed in some way. Make sure you’re using a Code Signing Certificate and that you’ve properly built your .jks or .pfx that you’re using with module-signer.jar.
You can open your .modl by renaming it to a .zip and looking at your certificates.p7b inside. If you’re running Windows, double clicking it should pull up the info on the certs contained within. If there’s a problem with it, which it seems like there is, I don’t think Windows is likely to be able to open it either.