Details
-
New Feature
-
Status: In Review (View Workflow)
-
Critical
-
Resolution: Unresolved
-
None
-
10.3.3-1
Description
When using a password-protected key, MariaDB server can not start because the server waits for a key to be entered:
Enter PEM pass phrase:
Since this doesn't work if server is started as a service or as background process, an additional option --ssl-passphrase should be implemented (as in Connector/C).
Update, 17 Feb 2025
We take OpenSSL approach, where --passin/passout parameters to the command line tool can specify a file ("file:" prefix), environment variable ("env:" prefix) , clear-text password("pass:" prefix)
Attachments
Issue Links
- blocks
-
MXS-4102 Support for passphrase protected certificate keys
-
- Open
-
- is duplicated by
-
MDEV-17290 Mechanism for encrypting ssl_key
-
- Closed
-
Shouldn't we rather consider a way to configure this similar to how Apache and PostgreSQL do this, to be able to avoid that the passphrase is visible in my.cnf or in "ps" output?
Both Apache and Postgres take the approach to have a setting to define an external process that will provide the actual passphrase, see e.g.
https://httpd.apache.org/docs/2.4/mod/mod_ssl.html#sslpassphrasedialog
or
https://www.postgresql.org/docs/11/runtime-config-connection.html#id-1.6.6.6.4.3.10.1.3
or for a bit more background discussion:
https://www.2ndquadrant.com/en/blog/postgresql-passphrase-protected-ssl-keys-systemd/