Crates.io | csr-gen |
lib.rs | csr-gen |
version | 0.2.0 |
source | src |
created_at | 2017-03-17 06:41:26.262305 |
updated_at | 2017-03-17 06:41:26.262305 |
description | Creates csrs ready for use with Lets Encrypt. |
homepage | |
repository | https://gitlab.mjdsystems.ca/MJDSys/csr_gen |
max_upload_size | |
id | 9003 |
size | 24,586 |
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.
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.
# 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.
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.