Skip to content

Commit

Permalink
Don't Base64.UrlSafe Encode x5c in Request
Browse files Browse the repository at this point in the history
Used java.util.Base64.getEncoder() to encode the
the x5c instead.

Tested manually against java.util.Base64.getDecoder()
.decode to ensure decoding doesn't throw error.

Signed-off-by: Suzanna Jiwani <[email protected]>
  • Loading branch information
suzannajiwani committed Dec 2, 2024
1 parent 6ff3d5a commit 5d5a33c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ lrW+vvdmRHBgS+ss56uWyYor6W7ah9ygBwYFK4EEACI=
)

val readerX5c = singleUseReaderKeyCertChain.certificates.map { cert ->
Base64.from(cert.encodedCertificate.toBase64Url())
Base64.from(java.util.Base64.getEncoder().encodeToString(cert.encodedCertificate))
}

val request = lookupWellknownRequest(session.requestFormat, session.requestDocType, session.requestId)
Expand Down

0 comments on commit 5d5a33c

Please sign in to comment.