Linux operator guide
IntroductionStartup / Shutdown console
The TLS protection of
Start Soffid IAM Console is applied through the configuration of the Apache TomEE embedded in the installation.
This solution is running under java technology therefore we need a jks file (Java Key Store) or a PKCS#12 file with the information of your certificate.
Once you have the Console installed and your certificate in jks format you can follow this steps to configure it the first time or for an update.
Mind that sometimes, the network encryption algorithm is named as SSL, in fact, the configuration file still displays the word SSL. However, SSL protocol is now outdated, and TLSv1.2 is used instead.
Configuration
The configuration file to modify is the following one:
/opt/soffid/iam-console-2/conf/server.xml
It can contain one or more connectors. Uncomment or add the following one, that enables the TLS configuration:
<Connectorsystemctl port="443"start protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150"
SSLEnabled="true">
<SSLHostConfig>
<Certificate certificateKeystoreFile="conf/yourcert.jks"
certificateKeystorePassword="123456"
certificateKeyAlias="yourdomain"
type="RSA"
xpoweredBy="false"
server="Apache TomEE" />
</SSLHostConfig>
</Connector>soffid-iamconsole.service
Stop
TheseSoffid areIAM the attributes that you have to configure.
Then, copy or replace your jks file into to the file /opt/soffid/iam-console2/conf/yourcert.jks
After that, you have to restart the iam-console services.
sudo systemctl restartstop soffid-iamconsoleiamconsole.service
Status
If you haveneed someto configurationcheck error,the youservice status
systemctl status soffid-iamconsole.service
Logs
You can search for more information infind the Consoleconsole loglogs (the current day log):
at: /opt/soffid/iam-console-2/logs/soffid-YYYY-MM-DD.log3/logs
Load a PKCS#12 (.PFX) file
There are many standard ways to store and transfer private keys and certificates, but the most common one is the PKCS#12 format. Its main advantage is that it contains, in a single file, both the private key and the public certificate.
To transform the .PFX file to a java key store (.JKS), ane can use next command (you have to adapt it to your system):
keytool -v -importkeystore -srckeystore <YOUR_FILE.PFX> -srcstoretype PKCS12 \
-destkeystore /opt/soffid/iam-console-2/conf/yourcert.jks \
-destalias yourdomain -deststoretype JKS
Next, you will be asked for the PFX encryption password. It must be provided to you along the PFX file.
Next, you will be asked (probably twice) for the password to be used to encrypt the .JKS file. This password must be written down in the server.xml file. At the sample SSL configuration file placed at the top of this page, the sample password is 123456.
Further information
Additional information can be found at Tomcat website: https://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html