Skip to content

Commit 93ca0ba

Browse files
committed
Don't timeout when using the HSM.
RSA key generation takes a lot of time.
1 parent 31e917b commit 93ca0ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hsm.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl Hsm {
7676
// NOTE: RSA key generation takes a lot of time on the YubiHSM. It's also
7777
// highly viariable: in practice we've seen RSA4K key generation take
7878
// anywhere from less than 1 minute to over 5 minutes.
79-
const TIMEOUT_MS: u64 = 300000;
79+
const TIMEOUT_MS: u64 = u64::MAX;
8080

8181
pub fn new(
8282
auth_id: Id,

0 commit comments

Comments
 (0)