I'am installing a SSL Certificate.
The certificate I have is from COMODO and they send to me 3 files:
Root CA Certificate - AddTrustExternalCARoot.crt
Intermediate CA Certificate - COMODOHigh-AssuranceSecureServerCA.crt
Your PremiumSSL Certificate - www_etecsoft_com.crt
I created a selfsigned certifcate in new java keystore and imported the certificate in the keystore (Import Root certificate, Import Root intermediate and Import Root your certificate: ( *.crt file))
The keystore is in C:\Servoy\application_server\server\conf
Following the wiki instructions https://wiki.servoy.com/display/Serv7/Network+Related+Settings :
-In C:\Servoy\application_server\server\conf\server.xml
- Code: Select all
<Connector port="8080"
protocol="HTTP/1.1"
maxThreads="500" connectionTimeout="60000"
redirectPort="8443" useBodyEncodingForURI="true"
compression="4096"
compressableMimeType="text/html,text/xml,text/plain,text/javascript,text/css" />
<Connector port="8443"
maxThreads="500"
connectionTimeout="60000"
scheme="https"
secure="true"
SSLEnabled="true"
keystoreFile="conf/etecsoft.keystore"
keystorePass="myPassWord"
clientAuth="false" sslProtocol="TLS"
compressableMimeType="text/html,text/xml,text/plain,text/javascript,text/css"
/>
-In C:\Servoy\application_server\server\webapps\ROOT\WEB-INF\web.xml
add before </web-app>
- Code: Select all
<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>
-in the servoy properties:
- Code: Select all
SocketFactory.compress=true
SocketFactory.rmiServerFactory=com.servoy.j2db.rmi.DefaultServerRMIServerSocketFactoryFactory
SocketFactory.tunnelConnectionMode=2waysocket
SocketFactory.tunnelUseSSLForHttp=false
SocketFactory.useSSL=true
SocketFactory.useTwoWaySocket=true
SocketFactory.SSLKeystorePath=C:/Servoy/application_server/server/conf/etecsoft.keystore
SocketFactory.SSLKeystorePassphrase=myPassWord
and all the encrypted\ pasword put into visible text https://www.servoy.com/forum/viewtopic.php?f=5&t=13565&p=70269&hilit=encripted+ssl#p70269
When I turn on the servoy service it stop and didn't start.
Looking in the C:\Servoy\application_server\.service_log.txt:
- Code: Select all
Launching a JVM...
INFO | jvm 1 | 2015/03/22 18:36:12 | WrapperManager: Initializing...
INFO | jvm 1 | 2015/03/22 18:36:12 | log4j:WARN No appenders could be found for logger (com.servoy.j2db.util.Debug).
INFO | jvm 1 | 2015/03/22 18:36:12 | log4j:WARN Please initialize the log4j system properly.
INFO | jvm 1 | 2015/03/22 18:36:12 | log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
STATUS | wrapper | 2015/03/22 18:36:14 | on_exit trigger matched. Restarting the JVM. (Exit code: 1)