GateIn Portal3.5 default run on the HTTP mode. However, for security purpose, you can config GateIn Portal to run on the HTTPS mode. This section show you how to config GateIn with HTTPS mode.
If you haven't your own X.509 certificate, you can make a simple certificate using the keytool command:
Now, your key is stored in server.keystore.
You need to import your key into the Sun JDK keystore (This is required to help running gadget features)
On OS X cacerts file is located at $JAVA_HOME/lib/security/cacerts.
Also, since your Sun JDK keystore has a different password than the one used for the key you created in the first step you have to change your key password to match the new keystore password (probably it's the default JDK trustore pasword: 'changeit')
- Edit $JBOSS_HOME/standalone/configuration/standalone.xml by adding https connector to web subsystem configuration (change certificate-key-file and password to values appropriate for your keystore - here we assume the keystore password is 'changeit'):
You can now access the portal by going to https://localhost:8443/portal.
- Edit server.xml from tomcat/conf folder by commenting the lines:
- Uncomment lines and add keystoreFile and keystorePass values:
- Restart GateIn. If your configuration is correct, you can access to GateIn via https://<ServerAddress>:8443/portal.