mariadb/mysql-test/main/ssl_encrypted_key.combinations
Vladislav Vaintroub 86ec20189a MDEV-14091 Support password protected SSL key in server.
Add ssl_passphrase server parameter, which works similarly
to --passout/--passin openssl command line parameters.

Pass phrase value can be formatted as follows.

- pass:password
Provide actual password after the pass: prefix.

- env:var
Obtain the password from the environment variable 'var'a

- file:pathname
Reads the password from the specified file pathname.
Only the first line, up to the newline character, is read from the stream.

If ssl_passphrase was set, SHOW VARIABLE will show "file:", "env:" or
  "pass:" (but won't reveal sensitive data)
2025-04-19 14:04:10 +03:00

8 lines
188 B
Text

[pass]
loose-ssl_passphrase=pass:MySecretPass
[env]
loose-ssl_passphrase=env:SSL_KEY_PASSWORD
[file]
loose-ssl_passphrase=file:$MYSQL_TEST_DIR/std_data/encrypted-server-key-password.txt