diff --git a/src/dispatcher.rs b/src/dispatcher.rs index daa18d97..f9411e61 100644 --- a/src/dispatcher.rs +++ b/src/dispatcher.rs @@ -83,7 +83,7 @@ impl Dispatcher { let signed_string = format!("(request-target): post {request_target}\nhost: {host}\ndate: {date}"); signer.update(signed_string.as_bytes()).unwrap(); let signature = base64::prelude::BASE64_URL_SAFE.encode(signer.sign_to_vec().unwrap()); - let signature_header = format!("keyId=\"{}\",headers=\"(request-target) host date\",signature=\"{signature}\"", delivery.actor); + let signature_header = format!("keyId=\"{}\",algorithm=\"rsa-sha256\",headers=\"(request-target) host date\",signature=\"{signature}\"", delivery.actor); if let Err(e) = reqwest::Client::new() .post(&delivery.target)