Always generate identity.pfx on rust agent startup
Ensure we always generate the identity.pfx on rust agent startup to
avoid stale auth.
@@ -69,7 +69,6 @@ lazy_static! {
let pfx_path = get_pfx_path();
- if !path_exists(&pfx_path) {
Command::new("openssl")
.args(&[
"pkcs12",
@@ -87,7 +86,6 @@ lazy_static! {
])
.status()
.expect("Error creating pfx");
- }
std::fs::read(&pfx_path).expect("Could not read pfx")
};
