git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] signature-format.txt: Note SSH and X.509 signature delimiters

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 10, 2023, 16:58 UTC
Message-ID
<xmqqwn4pjw3c.fsf@gitster.g>
In-Reply-To
<Y+XhPeh76D6/Uz6C@tilde.club>
Gwyneth Morgan <gwymor@tilde.club> writes:
> I believe the existing language is referring to the
> "-----BEGIN PGP MESSAGE-----" format GPG outputs in RFC 1991 mode,
> rather than the "-----BEGIN SIGNED MESSAGE-----" that X.509 uses.

The paragraph came from 76f9d8ba (Documentation/technical: describe signature formats, 2016-06-17) that started the documentation, and predates x509 support by two years (and ssh came even later), so you're right. It couldn't possibly have meant anything newer.

Thanks.
Show 14 quoted lines
> OpenSSH's signature format documentation says:
>
>
> 	The Armored SSH signatures consist of a header, a base64
> 	encoded blob, and a footer.
>
> 	The header is the string "-----BEGIN SSH SIGNATURE-----"
> 	followed by a newline. The footer is the string
> 	"-----END SSH SIGNATURE-----" immediately after a newline.
>
> This is sufficiently similar to the nomenclature in RFC 4880 to call
> these "Armor Header Line and Tail Line" without any misunderstanding (or
> "footer line" if that's preferred). I did not find documentation on what
> X.509 calls these.

Sounds good. Thanks for due dilligence; it would make sure our nomenclature would not go out of line without a good reason.

Previous: Gwyneth MorganNext: Gwyneth Morgan
Message 5 of 11 in “signature-format.txt: Note SSH and X.509 signature delimiters”
  1. signature-format.txt: Note SSH and X.509 signature delimitersGwyneth Morgan, Jan 20, 2022
  2. Junio C HamanoJan 20, 2022
  3. Junio C HamanoJan 20, 2022
  4. Gwyneth MorganFeb 10, 2023
  5. Junio C HamanoFeb 10, 2023
  6. signature-format.txt: note SSH and X.509 signature delimitersGwyneth Morgan, Feb 10, 2023
  7. Ævar Arnfjörð BjarmasonFeb 10, 2023
  8. Gwyneth MorganFeb 27, 2023
  9. Junio C HamanoFeb 10, 2023
  10. signature-format.txt: note SSH and X.509 signature delimitersGwyneth Morgan, Feb 27, 2023
  11. Junio C HamanoFeb 27, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.