When trying to simply connect to a swtpm instance using an unix socket, the parsing fails and falls back to default TCP.
Given:
let device = TctiNameConf::from_str("swtpm:path=/tmp/vtpm").unwrap();
// create the context for the TPM device
let mut context = Context::new(device)
.expect("Failed to create context for TPM device");
It returns this error:
WARNING:tcti:src/util-io/io.c:262:socket_connect() Failed to connect to host 127.0.0.1, port 2321: errno 111: Connection refused
ERROR:tcti:src/tss2-tcti/tcti-swtpm.c:617:Tss2_Tcti_Swtpm_Init() Cannot connect to swtpm TPM socket
ERROR:tcti:src/tss2-tcti/tctildr-dl.c:149:tcti_from_file() Could not initialize TCTI file: swtpm
ERROR:tcti:src/tss2-tcti/tctildr.c:477:tctildr_init_context_data() Failed to instantiate TCTI
ℹ️ I use the latest released version (v7.7.0).
When trying to simply connect to a swtpm instance using an unix socket, the parsing fails and falls back to default TCP.
Given:
It returns this error:
ℹ️ I use the latest released version (v7.7.0).