Fix tonic TLS issues #1
@ -63,11 +63,7 @@ pub async fn connect_dtpm_grpc_client(
|
|||||||
.enable_http2()
|
.enable_http2()
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
let channel = Endpoint::from_shared(hratls_uri)?
|
let channel = Endpoint::from_shared(hratls_uri)?.connect_with_connector(connector).await?;
|
||||||
// .tls_config(client_tls_config.into())?
|
|
||||||
.connect_with_connector(connector)
|
|
||||||
.await
|
|
||||||
.unwrap();
|
|
||||||
|
|
||||||
Ok(DtpmConfigManagerClient::new(channel))
|
Ok(DtpmConfigManagerClient::new(channel))
|
||||||
}
|
}
|
||||||
@ -79,7 +75,6 @@ pub async fn attest_and_send_config(loaded_config: DtpmConfig, uuid: &str) -> Re
|
|||||||
log::trace!("Decoded the configuration... {:?}", req_data);
|
log::trace!("Decoded the configuration... {:?}", req_data);
|
||||||
|
|
||||||
let (hratls_uri, mr_enclave) = hratls_url_and_mr_enclave_from_app_id(uuid).await;
|
let (hratls_uri, mr_enclave) = hratls_url_and_mr_enclave_from_app_id(uuid).await;
|
||||||
|
|
||||||
log::info!("hratls uri: {}\nmr_enclave: {:?}", &hratls_uri, &mr_enclave);
|
log::info!("hratls uri: {}\nmr_enclave: {:?}", &hratls_uri, &mr_enclave);
|
||||||
|
|
||||||
let client = connect_dtpm_grpc_client(hratls_uri, mr_enclave).await?;
|
let client = connect_dtpm_grpc_client(hratls_uri, mr_enclave).await?;
|
||||||
|
@ -186,7 +186,7 @@ pub struct AppDeployResponse {
|
|||||||
|
|
||||||
impl crate::HumanOutput for AppDeployResponse {
|
impl crate::HumanOutput for AppDeployResponse {
|
||||||
fn human_cli_print(&self) {
|
fn human_cli_print(&self) {
|
||||||
println!("App deployd with UUID: {}, App Name: {}", self.uuid, self.name);
|
println!("The application got deployed under the UUID: {}", self.uuid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user