Skip to content

Commit 1353876

Browse files
ansasakiclaude
andcommitted
fix(keylimectl): use correct TPM algorithm names in pull model enrollment
The accept_tpm_signing_algs field was set to ["rsa", "ecdsa"], which are encryption algorithm names, not signing algorithm names. The verifier rejected quotes signed with rsassa because it was not in the accepted list. Use the correct signing algorithm names matching the Python tenant defaults: ["ecschnorr", "rsassa"]. Also align accept_tpm_hash_algs with tenant defaults by including sha512 and sha384, and dropping sha1. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 8f61262 commit 1353876

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

  • keylimectl/src/commands/agent

keylimectl/src/commands/agent/add.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -275,17 +275,18 @@ pub(super) async fn add_agent(
275275
.or_else(|| Some("".to_string())),
276276
) // Use agent revocation key or default
277277
.with_accept_tpm_hash_algs(Some(vec![
278+
"sha512".to_string(),
279+
"sha384".to_string(),
278280
"sha256".to_string(),
279-
"sha1".to_string(),
280-
])) // Add required TPM hash algorithms
281+
]))
281282
.with_accept_tpm_encryption_algs(Some(vec![
282-
"rsa".to_string(),
283283
"ecc".to_string(),
284-
])) // Add required TPM encryption algorithms
285-
.with_accept_tpm_signing_algs(Some(vec![
286284
"rsa".to_string(),
287-
"ecdsa".to_string(),
288-
])) // Add required TPM signing algorithms
285+
]))
286+
.with_accept_tpm_signing_algs(Some(vec![
287+
"ecschnorr".to_string(),
288+
"rsassa".to_string(),
289+
]))
289290
.with_supported_version(
290291
agent_data
291292
.get("supported_version")

0 commit comments

Comments
 (0)