Mantis - Resin
Viewing Issue Advanced Details
6463 minor always 02-25-22 10:19 02-25-22 13:11
nam  
 
normal  
closed 4.0.66  
no change required  
none    
none  
0006463: windows java jdk 17 module error with resin-provided JSSE self-signed certificate
Resin cannot start up on Windows with JDK17 because it does not have access to the Java package sun.security.tools.keytool.

java.lang.IllegalAccessException: class com.caucho.vfs.SelfSignedCert$CertAndKeyGen cannot access class sun.security.tools.keytool.CertAndKeyGen (in module java.base) because module java.base does not export sun.security.tools.keytool to unnamed module @69379752
        at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392)
        at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674)
        at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:489)
        at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
        at com.caucho.vfs.SelfSignedCert$CertAndKeyGen.<init>(SelfSignedCert.java:210)
        at com.caucho.vfs.SelfSignedCert.create(SelfSignedCert.java:108)
        at com.caucho.vfs.JsseSSLFactory.createSelfSignedCert(JsseSSLFactory.java:681)
        at com.caucho.vfs.JsseSSLFactory.createAnonymousFactory(JsseSSLFactory.java:636)
        at com.caucho.vfs.JsseSSLFactory.create(JsseSSLFactory.java:478)
        at com.caucho.network.listen.TcpPort.bind(TcpPort.java:1123)
        at com.caucho.cloud.network.NetworkListenSystem.start(NetworkListenSystem.java:231)
        at com.caucho.env.service.ResinSystem.startServices(ResinSystem.java:552)
        at com.caucho.env.service.ResinSystem.start(ResinSystem.java:519)
        at com.caucho.server.resin.Resin.start(Resin.java:890)
        at com.caucho.server.resin.Resin.initMain(Resin.java:1038)
        at com.caucho.server.resin.Resin.main(Resin.java:1497)
com.caucho.config.ConfigException: Cannot generate anonymous certificate
        at com.caucho.vfs.JsseSSLFactory.createAnonymousFactory(JsseSSLFactory.java:639)
        at com.caucho.vfs.JsseSSLFactory.create(JsseSSLFactory.java:478)
        at com.caucho.network.listen.TcpPort.bind(TcpPort.java:1123)
        at com.caucho.cloud.network.NetworkListenSystem.start(NetworkListenSystem.java:231)
        at com.caucho.env.service.ResinSystem.startServices(ResinSystem.java:552)
        at com.caucho.env.service.ResinSystem.start(ResinSystem.java:519)
        at com.caucho.server.resin.Resin.start(Resin.java:890)
        at com.caucho.server.resin.Resin.initMain(Resin.java:1038)
        at com.caucho.server.resin.Resin.main(Resin.java:1497)
Cannot generate anonymous certificate
[22-02-25 10:14:55.922] {main} com.caucho.config.ConfigException: Cannot generate anonymous certificate
                        at com.caucho.vfs.JsseSSLFactory.createAnonymousFactory(JsseSSLFactory.java:639)
                        at com.caucho.vfs.JsseSSLFactory.create(JsseSSLFactory.java:478)
                        at com.caucho.network.listen.TcpPort.bind(TcpPort.java:1123)
                        at com.caucho.cloud.network.NetworkListenSystem.start(NetworkListenSystem.java:231)
                        at com.caucho.env.service.ResinSystem.startServices(ResinSystem.java:552)
                        at com.caucho.env.service.ResinSystem.start(ResinSystem.java:519)
                        at com.caucho.server.resin.Resin.start(Resin.java:890)
                        at com.caucho.server.resin.Resin.initMain(Resin.java:1038)
                        at com.caucho.server.resin.Resin.main(Resin.java:1497)

Notes
(0007050)
nam   
02-25-22 13:11   
If an https port is specified and no certificate is provided and openssl is not enabled, then Resin will automatically generate and use its own self-signed certificate. This functionality is for testing purposes and not intended for use by end-users.