Skip to content

Commit

Permalink
feat: Copy the cert-manager crate into the repo (#121)
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Dimitrov <dimitrov.maksim@gmail.com>
  • Loading branch information
dimitrovmaksim authored Dec 28, 2023
1 parent e65aa1d commit d5d59e7
Show file tree
Hide file tree
Showing 8 changed files with 871 additions and 4 deletions.
10 changes: 7 additions & 3 deletions core/network/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,25 @@ readme = "README.md"

[dependencies]
avalanche-types = { path = "../../crates/avalanche-types", features = ["message"] }
cert-manager = "0.0.11" # https://github.com/gyuho/cert-manager
log = "0.4.20"
rustls = { version = "0.21.5", features = ["logging", "dangerous_configuration"]} # https://github.com/rustls/rustls/tags
hyper-rustls = "0.24.1"
rustls-native-certs = "0.7.0"
hyper = { version = "0.14.27", features = ["full"], optional = true }
tokio-rustls = { version = "0.24.1", optional = true }

rand = "0.8.5"
random-manager = "0.0.5" # https://crates.io/crates/random-manager/versions
rcgen = { version = "0.11.3", features = ["pem", "x509-parser"] }
rsa = { version = "0.9.2", features = ["pem"] } # https://crates.io/crates/rsa
rustls-pemfile = "1.0.3"
x509-parser = "0.15.1"
# for feature "pem"
pem = { version = "3.0.0", optional = true } # https://github.com/jcreekmore/pem-rs

[dev-dependencies]
env_logger = "0.10.0"
random-manager = "0.0.5"
rcgen = "0.11.3"
tempfile = "3.5.0"
tokio = { version = "1.32.0", features = ["full"] }
tracing = "0.1.37"
tracing-subscriber = "0.3.17"
Expand Down
2 changes: 1 addition & 1 deletion core/network/examples/peer_outbound_ping.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use std::{
};

use avalanche_types::{ids::Id, message};
use network::peer::outbound;
use network::{cert_manager, peer::outbound};

/// cargo run --example peer_outbound_ping -- [PEER IP] [STAKING PORT]
/// cargo run --example peer_outbound_ping -- 34.222.2.60 9651
Expand Down
2 changes: 2 additions & 0 deletions core/network/src/cert_manager/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/// This module is a copy of the cert-manager crate by gyuho (https://github.com/gyuho/cert-manager)
pub mod x509;
Loading

0 comments on commit d5d59e7

Please sign in to comment.