diff --git a/core/src/main/java/dev/fitko/fitconnect/core/validation/DefaultValidationService.java b/core/src/main/java/dev/fitko/fitconnect/core/validation/DefaultValidationService.java index 4b2dab852132b8a235fe76e8d840d3ace7603462..fa75c8e580ecd3cedfb5aaaf7f82a074c4a32585 100644 --- a/core/src/main/java/dev/fitko/fitconnect/core/validation/DefaultValidationService.java +++ b/core/src/main/java/dev/fitko/fitconnect/core/validation/DefaultValidationService.java @@ -213,11 +213,7 @@ public class DefaultValidationService implements ValidationService { } private JWKValidator addLogLevel(final JWKValidatorBuilder.JWKValidatorX5CErrorHandling validator) { - if (config.getCurrentEnvironment().isAllowInsecurePublicKey()) { - return validator.withoutThrowingExceptions().withErrorLogLevel(LogLevel.WARN).build(); - } else { - return validator.withThrowingExceptions().withErrorLogLevel(LogLevel.ERROR).build(); - } + return validator.withThrowingExceptions().withErrorLogLevel(LogLevel.ERROR).build(); } private void validateWithoutCertChain(final RSAKey publicKey, final KeyOperation purpose) throws JWKValidationException {