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 Oct 31, 2022
1 parent c2bcdbf commit 1651a13
Show file tree
Hide file tree
Showing 4 changed files with 382 additions and 2 deletions.
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.10.0 - September 29, 2022

- Update x509-parser to 0.14.
Expand Down
207 changes: 205 additions & 2 deletions 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 @@ -34,7 +34,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.14", features = ["verify"] }
webpki = { version = "0.22", features = ["std"] }
botan = { version = "0.8", features = ["vendored"] }
Expand All @@ -46,3 +48,7 @@ rsa = "0.6"
# 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 1651a13

Please sign in to comment.