Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
151 changes: 145 additions & 6 deletions Cargo.lock

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

11 changes: 6 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,12 @@ repository = "https://github.com/flashbots/attested-tls-proxy"
keywords = ["attested-TLS", "CVM", "TDX"]

[dependencies]
attested-tls = { git = "https://github.com/flashbots/attested-tls", branch = "peg/attested-tls-crate" }
nested-tls = { git = "https://github.com/flashbots/attested-tls", branch = "peg/attested-tls-crate" }
attestation = { git = "https://github.com/flashbots/attested-tls", branch = "peg/attested-tls-crate" }
attested-tls = { git = "https://github.com/flashbots/attested-tls", branch = "main" }
nested-tls = { git = "https://github.com/flashbots/attested-tls", branch = "main" }
attestation = { git = "https://github.com/flashbots/attested-tls", branch = "main" }
pccs = { git = "https://github.com/flashbots/attested-tls", branch = "main" }
tokio = { version = "1.50.0", features = ["full"] }
tokio-rustls = { version = "0.26.4", default-features = false }
tokio-rustls = { version = "0.26.4", default-features = false, features = ["aws_lc_rs"] }
x509-parser = { version = "0.18.0", features = ["verify"] }
thiserror = "2.0.17"
clap = { version = "4.5.51", features = ["derive", "env"] }
Expand Down Expand Up @@ -47,7 +48,7 @@ pin-project-lite = "0.2.16"
[dev-dependencies]
tempfile = "3.23.0"
tdx-quote = { version = "0.0.5", features = ["mock"] }
attestation = { git = "https://github.com/flashbots/attested-tls", branch = "peg/attested-tls-crate", features = ["mock"] }
attestation = { git = "https://github.com/flashbots/attested-tls", branch = "main", features = ["mock"] }
tokio = { version = "1.48.0", features = ["full"] }
jsonrpsee = { version = "0.26.0", features = ["server"] }

Expand Down
1 change: 1 addition & 0 deletions attestation-provider-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ async fn main() -> anyhow::Result<()> {
pccs_url: None,
dump_dcap_quotes: cli.log_dcap_quote,
override_azure_outdated_tcb: false,
internal_pccs: None,
};

let attestation_message =
Expand Down
2 changes: 1 addition & 1 deletion attested-tls/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords = ["attested-TLS", "CVM", "TDX"]

[dependencies]
tokio = { version = "1.48.0", features = ["full"] }
tokio-rustls = { version = "0.26.4", default-features = false }
tokio-rustls = { version = "0.26.4", default-features = false, features = ["aws_lc_rs"] }
sha2 = "0.10.9"
x509-parser = "0.18.0"
thiserror = "2.0.17"
Expand Down
8 changes: 8 additions & 0 deletions attested-tls/src/test_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ use crate::SUPPORTED_ALPN_PROTOCOL_VERSIONS;

pub use attestation::measurements::mock_dcap_measurements;

fn install_crypto_provider() {
let _ = tokio_rustls::rustls::crypto::aws_lc_rs::default_provider().install_default();
}

/// Helper to generate a self-signed certificate for testing
pub fn generate_certificate_chain(
ip: IpAddr,
Expand All @@ -36,6 +40,8 @@ pub fn generate_tls_config(
certificate_chain: Vec<CertificateDer<'static>>,
key: PrivateKeyDer<'static>,
) -> (ServerConfig, ClientConfig) {
install_crypto_provider();

let supported_protocols: Vec<_> = SUPPORTED_ALPN_PROTOCOL_VERSIONS
.into_iter()
.map(|p| p.to_vec())
Expand Down Expand Up @@ -67,6 +73,8 @@ pub fn generate_tls_config_with_client_auth(
bob_certificate_chain: Vec<CertificateDer<'static>>,
bob_key: PrivateKeyDer<'static>,
) -> ((ServerConfig, ClientConfig), (ServerConfig, ClientConfig)) {
install_crypto_provider();

let supported_protocols: Vec<_> = SUPPORTED_ALPN_PROTOCOL_VERSIONS
.into_iter()
.map(|p| p.to_vec())
Expand Down
Loading
Loading