Hi, I’m running
Server Information
Servoy version 8.2.2 -releaseNumber 3107
Port used by RMI Registry: 1099
Repository version 49
JVM Information
java.vm.name=Java HotSpot(TM) 64-Bit Server VM
java.version=9.0.1
java.vm.info=mixed mode
java.vm.vendor=Oracle Corporation
Operating System Information
os.name=Mac OS X
os.version=10.12.6
os.arch=x86_64
I have created a keystore inside
/application_server/server/conf
by running the following commands in the conf directory
keytool -import -alias root -keystore servoy.keystore -trustcacerts -file gdroot-g2.crt
keytool -import -alias intermed -keystore servoy.keystore -trustcacerts -file gdig2.crt
keytool -import -alias servoy -keystore servoy.keystore -trustcacerts -file <my_ssl_certificate_name_here>.crt
specifying a keystore password, lets call it .
I have added an extra bit to server.xml
<Connector port="8084"
maxThreads="500"
connectionTimeout="60000"
scheme="https"
secure="true"
SSLEnabled="true"
keystoreFile="conf/servoy.keystore"
keystorePass="<password>"
/>
and added the following
<security-constraint>
<web-resource-collection>
<web-resource-name>Automatic SLL Forwarding</web-resource-name>
<url-pattern>/</url-pattern>
</web-resource-collection>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
to
/application_server/server/webapps/ROOT/WEB-INF/web.xml
then I go to the Network Settings in Servoy Server admin to try to set
SocketFactory.SSLKeystorePath = server/conf/servoy.keystore
SocketFactory.SSLKeystorePassphrase =
Whatever I set them to I either get a message that
the keystore password was wrong or I get a green message that SSL initialised OK,
but when I look in the logs the keystore was not found and you can no longer launch Smart Clients, the fail to load with hand-shake errors.
I’m not trying to sign the code with a code-signing certificate, I just want to force all the traffic to servoy-admin and smart-clients over https.
Any ideas what I’m doing wrong?