Enabling SSL for database connections
As you update your site to be General Data Protection Regulation (GDPR) ready, you may
need to take additional steps so that customer data is encrypted during all communication, both
internal and external. To help encrypt communication, WebSphere Commerce encrypts communications
between servers. To secure any data transfer between WebSphere Commerce and your database, set
up a Secure Sockets Layer (SSL) connection.
Before you begin
If you are using DB2, configure the database to use SSL before you switch to the protocol in WebSphere Commerce.
- Configure the database to use SSL. For more information, see Configuring Secure Sockets Layer (SSL) support in a DB2 database.
- Extract the certificate that was created in the previous step, and copy it to your WebSphere Commerce environment. SSL uses the certificate to connect the database to WebSphere Commerce utilities.
Procedure
Configure the database connection for runtime applications.
-
Import the database server certificate.
-
Configure the data source to support SSL connections.
- Select .
- Select WebSphere Commerce database DataSource demo in the data source list, where database can be either DB2 or Oracle.
- Update the port number in the Common and required data source properties section. Enter the value of the security port that you set in the database server.
- Click Apply.
- In the Additional Properties section, select Custom properties.
- Click New
- Enter sslConnection in the Name field, and enter true in the Value field.
- Click OK to save the configurations.
- Perform the same configuration for the data source WebSphere Commerce database Publish DataSource demo, where database can be either DB2 or Oracle.
-
Follow the procedure described in steps 1 and 2 to configure the Search server.
Note: The data source for the Search server should be WebSphere Commerce database DataSource demo, where database can be either DB2 or Oracle.
- Restart the Transaction server and Search server.
Configure Oracle connections for utilities
- To configure Oracle connections for utilities, see Configuring the Oracle database connection for utilities to authenticate users with Oracle Wallet.
Configure DB2 connections for utilities
-
Import the SSL certificate to the JDK default trust store.
-
Update the database connection configuration file.
-
Create a new properties file to override the JAVA security properties. Add
the following content in the file.
Save and exit the file.security.provider.1=com.ibm.jsse2.IBMJSSEProvider2 ssl.SocketFactory.provider=com.ibm.jsse2.SSLSocketFactoryImpl ssl.ServerSocketFactory.provider=com.ibm.jsse2.SSLServerSocketFactoryImpl
-
Configure the environment variable setting scripts.