Skip to content

GLPI 11 Fix CLI database install command to support ssl #23754

@sylvainblanchouin

Description

@sylvainblanchouin

Code of Conduct

  • I agree to follow this project's Code of Conduct

Disable plugins

  • I reproduce the issue with all plugins disabled

Is there an existing issue for this?

  • I have searched the existing issues

Version

11.0.6

Bug description

The bin/console database:install --no-interaction command can initialize GLPI database on deployment script, by pre-staging config/config_db.php file with appropriate contents.

However this works only when MySQL servers are allowing non-SSL connection. In case of strict security requirements of using connection with SSL, this command will result to have connection failure, even though the config_db.php was appropriatelly prepared with parameters of SSL connection.

Relevant log output

n/a

Page URL

No response

Steps To reproduce

  1. Prepare Mysql database disallow non-SSL connection
  2. Prepare config_db.php file with SSL config
  3. Execute bin/console db:install --no-interaction
  4. Error about db connection failure and db installation cannot be made.

Your GLPI setup information

N/A
Since the glpi installation is not made for this situation, there are no setup information.
Usage of MySQL database server provided by Cloud service.

Anything else?

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions