csr-gen

Crates.iocsr-gen
lib.rscsr-gen
version0.2.0
sourcesrc
created_at2017-03-17 06:41:26.262305
updated_at2017-03-17 06:41:26.262305
descriptionCreates csrs ready for use with Lets Encrypt.
homepage
repositoryhttps://gitlab.mjdsystems.ca/MJDSys/csr_gen
max_upload_size
id9003
size24,586
Matthew Dawson (MJDSys)

documentation

https://docs.rs/csr-gen

README

csr-gen

Latest Version

Documentation

A SSL CSR generator written in Rust. Provides both an easy to use command line program, along with a library that can be reused in other applications.

Application

To install, run:

cargo install csr-gen

Then create a configuration file, similar to:

key="myprivkey.pem"

[csrs]
"csr1.csr" = ["example.com","www.example.com"]

You can specify multiple csrs to be created from a single private key in the configuration file. To generate the csrs, run:

csr-gen -c myconfig.toml

Afterwards, a new csr in csr1.csr will be present. You can then submit the csr to your certificate authority for signing. These csrs have been tested against Let's Encrypt.

Library

# Cargo.toml
[dependencies]
toml = "0.3"

The library provides a Config struct that can be filled in with the appropriate information. You can then call Config::generate_csrs, passing it the path to a folder to generate the csrs in along with the private key to generate the csr with.

License

csr-gen is distributed under the terms of both the MIT license and the Apache License (Version 2.0).

See LICENSE-APACHE, and LICENSE-MIT for details.

Commit count: 0

cargo fmt