Enabling HTTPS for IBM Db2 Data Management Console
You can use an HTTPS URL for accessing the IBM® Db2® Data Management Console.
Procedure
Example
To create a self-signed certificate:
- Run the following command to generate the certificate (
certificate.pem
) and key (key.pem
) files in /opt/keystore/dmc. The keystore for the certificate is created in this directory.cd /opt/keystore/dmc openssl req -newkey rsa:2048 -nodes -keyout key.pem -x509 -days 365 -out certificate.pem
You will be prompted to provide information for the certificate. For the
Common Name
parameter ensure to provide the FQDN hostname of Db2 Data Management Console system.Country Name (2 letter code) [AU]:US State or Province Name (full name) [Some-State]:CA Locality Name (eg, city) []:San Jose Organization Name (eg, company) [Internet Widgits Pty Ltd]:IBM Organizational Unit Name (eg, section) []:Data and AI Common Name (e.g. server FQDN or YOUR name) []:dsmga41.fyre.ibm.com Email Address []:
- Convert the certificate file into pkcs12 format. For example, cert.p12.
Provide a password when prompted. In this example, the password is:
changeme
The cert.p12 file is generated.openssl pkcs12 -export -in certificate.pem -inkey key.pem -out cert.p12