Closed bblfish closed 3 years ago
Looking around the spec text that I think addresses this is RFC3987 Internationalized Resource Identifiers §3.1. The Link header RFC only talks in terms of URIs. So the reference should probably be the URI spec.
The right code is the something like the following in the ammonite or scala shell
@ new java.net.URI("https://anaïs.eu/🤍/cats/")
res13: java.net.URI = https://anaïs.eu/🤍/cats/
@ res13.toASCIIString
res15: String = "https://ana%C3%AFs.eu/%F0%9F%A4%8D/cats/"
I think the above answered my question
In Signing HTTP Messages v04 the
keyid
parameter of theSignature-Input
is specifed to be of typesf-string
. This is defined in RFC8941and a little later
This means that if one is to place a URL in the keyid field it needs to be encoded. What is the best encoding? URL-encoding? That does not look that good.
One could add a different field and base64 encode a URL as an sf-byte-sequence
Any other ideas? Could one use the encoding of URLs used in HTTP headers? What are those?