简体   繁体   English

使用Mimekit签名时,DKIM签名存在次要问题

[英]Minor Issues with DKIM signature while signing with Mimekit

While DKIM signing with Mimekit works perfectly, I have two small issues with the actual signature. 使用Mimekit进行DKIM签名可以完美地工作时,实际签名有两个小问题。

DKIM-Signature: v=1; a=rsa-sha256; d=xxxxx.xx.xxx.xx; s=xxxxxx; c=relaxed/relaxed; i=kxxxx@xxxxx.xx.xxx.xx; t=1505903265; h=subject:from:reply-to:to:date:message-id:list-unsubscribe:sender: content-type:mime-version; bh=+YJ8JIQ4EA+AyTfpYN8VFp1ZiNU7BC/a3XtvhaR/VZE=; b=NLPjxuR58K9Rixf6eLtWESFphai0PoATGpC0UaEz1lqTHRCFeECbDC8HbcVBEQQfO8gyKi8pOub f4e92zbgttUIgpVZfi5xu7OMSPm5t/seycBdGfNto9bhWRoW21avcan1LPtEERthtYV0Eb6kwlEFX UFH3AhZKsvzD2YFTVyU=
DKIM-Signature: v=1; a=rsa-sha256; d=xxxx.xxx; s=xxxxx; c=relaxed/relaxed; t=1505903265; h=subject:from:reply-to:to:date:message-id:x-feedback-id:list-unsubscribe: content-type:mime-version; bh=+YJ8JIQ4EA+AyTfpYN8VFp1ZiNU7BC/a3XtvhaR/VZE=; b=kVrvAHo7Kek5jx/YEzd9WWi42wpn65r+0FOTwQ9H0fHDB738WY93Cro2p6Hq4qUBu3q6Eztc54N aXOo95mr0Mu0qFvlYM0hLWWjA9Je+fBjvoJPwuFLZVEfd8taZWFYOdYlEvsgyrPz3JMDYYio26wXy zyR+4R2Yc4SBfFP4/vs=

1) For some reason the header substring staring from "h=" and ending in ";" 1)出于某种原因,标题子字符串从“ h =“开始,以“;”结尾 doesn't preserve case, so "content-type:" should be "Content-Type:" 不保留大小写,因此“ content-type:”应为“ Content-Type:”

2) There seems to be an extra space that appears before "content-type:", how can this be removed?. 2)在“ content-type:”之前似乎有一个多余的空格,该如何删除?

@jstedfast's answer below @jstedfast的答案如下

The space before the content-type is probably because the header was folded there in the raw output. content-type之前的空格可能是因为标头在原始输出中折叠在那里。 The header names are lowercased for canonicalization purposes. 标头名称被小写以用于规范化目的。 I suppose I could leave them whatever case the user feeds them in as, but I went with lowercasing because that's what gmail does. 我想无论用户使用哪种情况我都可以保留它们,但是我使用了小写字母,因为gmail就是这样做的。 – jstedfast – jstedfast

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM