From 8ed4251d3141b8a5833d405746296fdde145e968 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 26 Mar 2024 04:14:23 +0100 Subject: [PATCH] fix: #main-key ... --- src/dispatcher.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatcher.rs b/src/dispatcher.rs index f8a4b5f1..4b2194d3 100644 --- a/src/dispatcher.rs +++ b/src/dispatcher.rs @@ -88,7 +88,7 @@ async fn worker(db: DatabaseConnection, domain: String, poll_interval: u64) -> R tracing::info!("signing: \n{signed_string}"); signer.update(signed_string.as_bytes())?; let signature = base64::prelude::BASE64_URL_SAFE.encode(signer.sign_to_vec()?); - let signature_header = format!("keyId=\"{}\",algorithm=\"rsa-sha256\",headers=\"(request-target) host date\",signature=\"{signature}\"", delivery.actor); + let signature_header = format!("keyId=\"{}#main-key\",algorithm=\"rsa-sha256\",headers=\"(request-target) host date\",signature=\"{signature}\"", delivery.actor); tracing::info!("attaching header: {signature_header}"); if let Err(e) = deliver(&delivery.target, payload, host, date, signature_header, &domain).await {