Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add SSL connection options to MariaDB #331

Merged
merged 2 commits into from
Apr 5, 2022
Merged

Conversation

sm-shaw
Copy link
Contributor

@sm-shaw sm-shaw commented Apr 5, 2022

Pull Request enables SSL network connectivity for MariaDB. .pem files should already be created and available in a readable directory and the MariaDB server enabled for SSL.
Options allow one-way or two-way SSL to be selected.

sslopts

If SSL is successfully enabled the SSL cipher is reported. Where SSL is not enabled an empty string {} is reported.

sslrun

Where SSL filenames are given the names are concatenated to the CApath and passed directly for each individual file. If all filenames are empty then the CApath option will be passed instead with the directory name.
The default SSL Cipher is listed as "server" meaning use the server default. This value can be changed to another available cipher.

Note: the SSL Cipher requires an update to the mariatcl library and will only work from HammerDB v4.5 unless built from source.

The same SSL options also available in the CLI.

dbset db maria
diset connection maria_host 127.0.0.1
diset connection maria_port 3306
diset connection maria_ssl true
diset connection maria_ssl_linux_capath /opt/mariadb-10.8.1-linux-x86_64/ssl
diset tpcc maria_driver timed
diset tpcc maria_rampup 2
diset tpcc maria_duration 5
vuset logtotemp 1
loadscript
vuset vu 4
vucreate
vurun
runtimer 600
vudestroy

@abondvt89
Copy link
Contributor

Merging Pull Request as voted on by TPC-OSS subcommittee on April 5, 2022.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants