Skip to content

Commit

Permalink
Add example of generating a new CA and a new server cert signed by th…
Browse files Browse the repository at this point in the history
…at CA, resolving rustls#79
  • Loading branch information
iamjpotts committed Aug 25, 2023
1 parent 270702b commit 1d8dbfe
Show file tree
Hide file tree
Showing 4 changed files with 416 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@

# Changes

## Unreleased

- Add [example](./examples/auto-gen-ca-and-server-tls.rs) that creates a new CA and new server certificate signed by it.
Contributed by [iamjpotts](https://github.com/iamjpotts).

## Release 0.11.1 - June 17, 2023

- Make botan a dev-dependency again. Contributed by [mbrubeck](https://github.com/mbrubeck).
Expand Down
251 changes: 250 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ default = ["pem"]
features = ["x509-parser"]

[dev-dependencies]
native-tls = "0.2"
openssl = "0.10"
pipe = { version = "0.4", features = ["bidirectional"] }
x509-parser = { version = "0.15", features = ["verify"] }
rustls-webpki = { version = "0.101.0", features = ["std"] }
rand = "0.8"
Expand All @@ -48,3 +50,7 @@ botan = { version = "0.10", features = ["vendored"] }
# ignores profile overrides for non leaf packages)
[profile.dev.package.num-bigint-dig]
opt-level = 3

[[example]]
name = "auto-gen-ca-and-server-tls"
required-features = ["x509-parser"]
Loading

0 comments on commit 1d8dbfe

Please sign in to comment.