server
server copied to clipboard
MDEV-33863: New mysqladmin command tls-info
trafficstars
- [x] The Jira issue number for this PR is: MDEV-3383
Description
Added a new command tls-info for mysqladmin client tool, which provides information for the TLS connection in use.
Release Notes
mysqladmin: Added a new command tls-info which returns the following information:
- TLS ciphersuite
- TLS protocol
- Peer certificate information:
- Version
- Subject
- Issuer
- Valid not before/not after
- SHA256 fingerprint
How can this PR be tested?
There is no test for, since the output depends on the certificate used by peer. Feature can be tested by executing mysqladmin with command tls-info.
Basing the PR against the correct MariaDB version
- [ X] This is a new feature and the PR is based against the latest MariaDB development branch.
- [ ] This is a bug fix and the PR is based against the earliest maintained branch in which the bug can be reproduced.
PR quality check
- [ X] I checked the CODING_STANDARDS.md file and my PR conforms to this where appropriate.
- [ X] For any trivial modifications to the PR, I am ok with the reviewer making the changes themselves.
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.