GitXplorerGitXplorer
d

mysslgen

public
8 stars
5 forks
4 issues

Commits

List of commits on branch master.
Unverified
3439651bb04a8a4bf6dbcf980da5616f8c7c2b16

Merge pull request #9 from cezmunsta/featues/configure-cn

ddveeden committed 7 years ago
Unverified
d629ec469187bd831187de83124da12c256ead29

Merge pull request #8 from cezmunsta/issues/7

ddveeden committed 7 years ago
Unverified
48e35eff862c2b64001475ddb9add2e85e8c1ffd

Fixed help message for --valid

ccezmunsta committed 7 years ago
Unverified
fbf1e120d00c6b14e319e2d4b735b73ceee6f34a

Enabled the ability to control the node name in the CN

ccezmunsta committed 7 years ago
Unverified
568d72354af0c9c814fc4134901bc847b5b43a0b

Removed unused import of sys after omitting pyOpenSSL notification

ccezmunsta committed 7 years ago
Unverified
934bc95b7cb48c58fa926c472bc1e1bb188a65ca

Fixed incorrect keyword name for logging.basicConfig

ccezmunsta committed 7 years ago

README

The README file for this repository.

Description

This is a tool to help and configure MySQL for use with SSL

It will create a certificate authoritity in /etc/mysql/ssl and generate a keypair for the server and a keypair for the client.

It will generate the server and client options which must be added to your configuation.

Usage

usage: mysslgen.py [-h] [--config CONFFILE] [--ssldir SSLDIR]

Manage SSL Certificates for MySQL

optional arguments: -h, --help show this help message and exit --config CONFFILE --ssldir SSLDIR

You'll need to do a chown -R mysql:mysql /etc/mysql/ssl to make sure MySQL is able to read the key files.

Requirements

  • Python 3 (or Python >= 2.7)
  • pyOpenSSL
  • Ubuntu: python3-openssl
  • Fedora: python3-pyOpenSSL

Python version

It is made for Python 3.3, but it should be able to run on Python 2.7. You'll need to prepend python2.7 to the command (python2.7 ./mysslgen.py)

The ConfigParser module in Python 2.6 does not recognize the "allow_no_value" option, so Python 2.6 will not work for now.

RHEL6

Enable RedHat Software Collections, there you can find Python 2.7 and Python 3.3

CentOS6

Install the IUS repo: http://www.iuscommunity.org/pages/IUSClientUsageGuide.html Then:

yum install python33 python33-distribute gcc openssl-devel
easy_install-3.3 pyOpenSSL

License

This project is licensed under GPLv2