Skip to content

How to verify Apple JWS? #915

Answered by lcobucci
imdhemy asked this question in Q&A
Sep 20, 2022 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

@imdhemy I believe the answer you seek is on the JWS RFC:

The certificate or certificate chain is represented as a JSON array of certificate value strings.
Each string in the array is a base64-encoded (Section 4 of [RFC4648] -- not base64url-encoded) DER [ITU.X690.2008] PKIX certificate value.
The certificate containing the public key corresponding to the key used to digitally sign the JWS MUST be the first certificate.
This MAY be followed by additional certificates, with each subsequent certificate being the one used to certify the previous one.
The recipient MUST validate the certificate chain according to RFC 5280 [RFC5280] and consider the certificate or certificate chain to be inva…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@imdhemy
Comment options

Answer selected by imdhemy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants