How to configure https communication

From Gcube Wiki
Jump to: navigation, search

In order to enable HTTPS communication between the Portal and gCube services a keystore and a truststore should be created and associated to tomcat instance.

Let's consider a key store (keyStore.jks) and a trust store (truststore.jks): the former contains portal key and certificate used to contact gCube services and the latter contains the Certificates of the Certification Authorities used for the GHNs.

Key store and trust store should be configured by using CATALINA_OPTS variable in file, under TOMCAT_HOME/bin directory:

    export CATALINA_OPTS="<keystore path> 
                <keystore password> 
                <keystore type, default jks> 
                <truststore path> 
                <truststore type, default jks>                           
                <truststore password>"