Skip to content

Commit

Permalink
Fix bug that broke authenticating to HSM through PKCS11.
Browse files Browse the repository at this point in the history
This was introduced a while back in 793ff4c.
  • Loading branch information
flihp committed Feb 27, 2025
1 parent e38d6ce commit 2e2a586
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ca.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ tcg-dice-kp-eca = 2.23.133.5.4.100.12
fn passwd_to_env(env_str: &str, password: &Zeroizing<String>) -> Result<()> {
use std::ops::Deref;

let password = Zeroizing::new(format!("0002:{}", password.deref()));
let password = Zeroizing::new(format!("0002{}", password.deref()));
std::env::set_var(env_str, password);

Ok(())
Expand Down

0 comments on commit 2e2a586

Please sign in to comment.