Nexus Certificate Manager

Set up MySQL in Certificate Manager using Podman

This article includes updates for Certificate Manager 8.11.0-1.

This article describes how to install and set up the MySQL database, used in Smart ID Certificate Manager (CM).

For detailed information about how to install MySQL, see the documentation available at MySQL .

Prerequisites

  • Install the MySQL database according to the instructions for the downloaded MySQL installation package.

  • Extract the MySQL database scripts create_db_and_role.sql, create_cmdb.sql, add_bootca.sql, located at certificate-manager-<version>\install\MySQL, from the server containerization zip file.

Step-by-step instruction

Edit settings on the MySQL server

The database user created by the create_db_and_role.sql script will use the default authentication plugin. In MySQL 8.0.4 the default authentication plugin has changed from mysql_native_password to caching_sha2_password.

  1. Modify the script create_db_and_role.sql

    1. Change the default password for the lcmreq user.

    2. Change the default user host settings default '%' indicates user may use the database from any host, with define host address to access database from.

  2. To enable interactive mode, login as superuser:

    mysql --user=root --password
    
  3. Run the script, that creates the CMDB database, the lcmreq user and the cmdb_rw_role role, from the current interactive mode:

    source create_db_and_role.sql >create_cmdb.log
    
  4. Check the log file.

  5. Run the script for creating the CMDB tables:

    source create_cmdb.sql >create_cmdb.log
    
  6. Check the log file.

  7. Run the script for adding the bootca: > source add_bootca.sql > add_bootca.log

  8. Check the log file.

Edit settings on the CM server

Navigate to the volume hosting the cm server config directory and update the database parameters in cm.conf:

  • Database.name

  • Database.user

  • Database.password

Secure the connection

See Set up MySQL in Certificate Manager.

 

Last updated: