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