7.4.10 SSL Location "access denied"

Questions and Answers on installation, deployment, management, locking, tranasactions of Servoy Application Server

7.4.10 SSL Location "access denied"

Postby bcusick » Tue Aug 21, 2018 9:47 pm

Hey Guys,

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
Bob Cusick
bcusick
 
Posts: 1224
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA

Re: 7.4.10 SSL Location "access denied"

Postby bcusick » Tue Aug 28, 2018 6:06 pm

SOLVED - Thanks to MY MAN Scott Butler.

The "error" really was one of "access denied". However, it wasn't "access denied" from the server.xml point-of-view (that worked just fine) - it was "access denied" from the Server Settings.

Once I cleared the server settings (I'm only using Web Client, not Smart Client) - the error resolved.

Good news: only 12 hours to figure out.....
Bob Cusick
bcusick
 
Posts: 1224
Joined: Wed Apr 23, 2003 11:27 pm
Location: Thousand Oaks, CA USA


Return to Servoy Server

Who is online

Users browsing this forum: No registered users and 4 guests

cron