thumbprint(
key) ->thumbprint,err
Compute the RFC 7638 thumbprint of a key
base64url of the SHA-256 over the canonical JSON: the required members
alone, in lexical order, with no whitespace. The private part plays no
role, so a key and its public half share one thumbprint. The form is
{"crv","kty","x"} for OKP, {"crv","kty","x","y"} for EC and
{"k","kty"} for oct. The members are strict base64url, so the string
needs no escaping.