Hello,
I am also encountering this issue with CAS 7.1.1.
I do not know why, it appeared at a certain point of time, without me doing anything else then rebuilding the docker image hosting my CAS server. Maybe the version of the jose4j library changed ?
Anyway, this looks like a defect. In the code of the OidcDefaultJsonWebKeystoreGeneratorService class one can see:
protected AbstractResource determineJsonWebKeystoreResource() throws Exception {
val file = SpringExpressionLanguageValueResolver.getInstance()
.resolve(oidcProperties.getJwks().getFileSystem().getJwksFile());
try {
val jsonKeys = new JsonWebKeySet(file).toJson(JsonWebKey.OutputControlLevel.INCLUDE_PRIVATE);
...
but in JsonWebKeySet class constructor, one can see:
public JsonWebKeySet(String json) throws JoseException
{
Map<String,Object> parsed = JsonUtil.parseJson(json);
which therefore generate the error...
Hope this helps