This one is driving me a little crazy....
I've put the SSL cert in {servoy install dir}/application_server/conf - it's called "servoy.jks".
In the server.xml I've added the whole path:
- Code: Select all
<Connector port="443"
maxThreads="500"
connectionTimeout="60000"
scheme="https"
secure="true"
SSLEnabled="true"
keystoreFile="C:/Servoy_7_PROD/application_server/server/conf/servoy.jks"
keystorePass="{password}"
/>
In the app server network settings - I've tried both
- Code: Select all
C:/Servoy_7_PROD/application_server/server/conf/
Which gets the error:
- Code: Select all
2018-08-21 12:22:09,157 ERROR [WrapperSimpleAppMain] com.servoy.j2db.util.Debug - SSLKeystorePath not found: C:/Servoy_7_PROD/application_server/server/conf/ fallback to default one [ ]
java.io.FileNotFoundException: C:\Servoy_7_PROD\application_server\server\conf (Access is denied)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.servoy.j2db.util.SecuritySupport.initSSLKeyStoreAndPassphrase(SecuritySupport.java:196)
at com.servoy.j2db.util.SecuritySupport.getSSLContext(SecuritySupport.java:95)
at com.servoy.j2db.server.main.ApplicationServer.Zc(ApplicationServer.java:268)
at com.servoy.j2db.server.main.Zob.startRMIServer(Zob.java:73)
at com.servoy.j2db.server.main.ApplicationServer.main(ApplicationServer.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:238)
at java.lang.Thread.run(Unknown Source)
SO - then I tried the relative path in both places:
- Code: Select all
server/conf/
The error I'm getting is:
- Code: Select all
2018-08-21 12:42:19,525 ERROR [WrapperSimpleAppMain] com.servoy.j2db.util.Debug - SSLKeystorePath not found: server/conf/ fallback to default one [ ]
java.io.FileNotFoundException: server\conf (Access is denied)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at com.servoy.j2db.util.SecuritySupport.initSSLKeyStoreAndPassphrase(SecuritySupport.java:196)
at com.servoy.j2db.util.SecuritySupport.getSSLContext(SecuritySupport.java:95)
at com.servoy.j2db.server.main.ApplicationServer.Zc(ApplicationServer.java:268)
at com.servoy.j2db.server.main.Zob.startRMIServer(Zob.java:73)
at com.servoy.j2db.server.main.ApplicationServer.main(ApplicationServer.java:108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:238)
at java.lang.Thread.run(Unknown Source)
I've made sure that the [servoy install] folder and all sub directories have maximum privileges - so I'm not sure if it's really "access denied" or "...SSLKeystorePath not found"....
I'm sure it's something stupid I'm doing... any help would be greatly appreciated!
Bob