S/MIMEは件名に署名しない
メールのヘッダーは対象外だから、件名も宛先も電子署名の対象外
A MIME entity that is the whole message includes only the MIME message headers and MIME body and does not include the rfc822 header
https://www.rfc-editor.org/rfc/rfc8551.html#section-3.1
だけど、ヘッダーを含めたメッセージ全体をmessage/rfc822のラッパーに入れてそれに署名する方法は定義されてる
問題があるのでRFC 9788で改良してる
#S/MIME