diff --git a/acmed/src/account.rs b/acmed/src/account.rs index cab6ca2..63f7ce5 100644 --- a/acmed/src/account.rs +++ b/acmed/src/account.rs @@ -282,8 +282,6 @@ fn hash_contacts(contacts: &[contact::AccountContact]) -> Vec { } fn hash_key(key: &AccountKey) -> Result, Error> { - let mut msg = key.signature_algorithm.to_string().into_bytes(); let pem = key.key.public_key_to_pem()?; - msg.extend_from_slice(&pem); - Ok(HashFunction::Sha256.hash(&msg)) + Ok(HashFunction::Sha256.hash(&pem)) }