forked from rustls/rcgen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A functional
rustls-cert-gen
with basic parameters.
This is basically rustls#185 minus rustls#188 and rustls#189. The structure also differs as sub modules have been inlined in `main.rs` and `cert.rs`. `anyhow` has also been added as a dependency to replace the `Result` alias. Closes rustls#175
- Loading branch information
Showing
8 changed files
with
913 additions
and
51 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# rustls-cert-gen | ||
|
||
`rustls-cert-gen` is a tool to generate TLS certificates. In its | ||
current state it will generate a Root CA and an end-entity | ||
certificate, along with private keys. The end-entity certificate will | ||
be signed by the Root CA. | ||
|
||
## Usage | ||
Having compiled the binary you can simply pass a path to output | ||
generated files. | ||
|
||
cargo run -- -o output/dir | ||
|
||
In the output directory you will find these files: | ||
|
||
* `cert.pem` (end-entity's X.509 certificate, signed by `root-ca`'s key) | ||
* `cert.key.pem` (end-entity's private key) | ||
* `root-ca.pem` (ca's self-signed x.509 certificate) | ||
|
||
For a complete list of supported options: | ||
|
||
rustls-cert-gen --help | ||
|
||
## FAQ | ||
|
||
#### What signature schemes are available? | ||
|
||
* `pkcs_ecdsa_p256_sha256` | ||
* `pkcs_ecdsa_p384_sha384` | ||
* `pkcs_ed25519` |
Oops, something went wrong.