Go to file
Cotton b8a6efaf4f Adding setup.py and updated to accept -f flag.
x Adding a setup.py for installing dependencies. I had an issue
  with none of the modules being installed. The message thrown is
  clear, but I'd like to just run a setup.py install.
x Adding -f flag. It allows users to create a .yaml file for multiple
  nodes/sans and will create a csr/key for each.
2017-08-09 22:02:45 -07:00
csr_tools Adding setup.py and updated to accept -f flag. 2017-08-09 22:02:45 -07:00
README.md Adding setup.py and updated to accept -f flag. 2017-08-09 22:02:45 -07:00
sample.yaml Adding setup.py and updated to accept -f flag. 2017-08-09 22:02:45 -07:00
setup.py Adding setup.py and updated to accept -f flag. 2017-08-09 22:02:45 -07:00

README.md

python-csr

Purpose

Generate a key, self-signed certificate, and certificate request.

Information

You'll notice there is a csrgen and csrgen35. This corresponds to their respective Python versions.

  • csrgen uses Python 2.7
  • csrgen34 uses Python 3.5

Installation / Dependencies

The following modules are required:

  • OpenSSL (pyopenssl)
  • Argparse (argparse)
  • YAML (pyyaml)

I've included a setup.py that will install these dependencies if you run:

python setup.py install`

Usage

csrgen [fqdn]

python csrgen test.test.com

When more than one hostname is provided, a SAN (Subject Alternate Name) certificate and request are generated. This can be acheived by adding a -s.

csrgen -s

python csrgen test.test.com -s mushu.test.com pushu.test.com