diff --git a/services/src/main/java/org/keycloak/keys/ImportedRsaKeyProviderFactory.java b/services/src/main/java/org/keycloak/keys/ImportedRsaKeyProviderFactory.java index d46a77a341..57a0978bb5 100644 --- a/services/src/main/java/org/keycloak/keys/ImportedRsaKeyProviderFactory.java +++ b/services/src/main/java/org/keycloak/keys/ImportedRsaKeyProviderFactory.java @@ -45,6 +45,7 @@ public class ImportedRsaKeyProviderFactory extends AbstractRsaKeyProviderFactory private static final List CONFIG_PROPERTIES = AbstractRsaKeyProviderFactory.configurationBuilder() .property(Attributes.PRIVATE_KEY_PROPERTY) .property(Attributes.CERTIFICATE_PROPERTY) + .property(Attributes.KEY_USE_PROPERTY) .build(); @Override diff --git a/services/src/main/java/org/keycloak/keys/JavaKeystoreKeyProviderFactory.java b/services/src/main/java/org/keycloak/keys/JavaKeystoreKeyProviderFactory.java index f5b9f0dd4c..d8918f6857 100644 --- a/services/src/main/java/org/keycloak/keys/JavaKeystoreKeyProviderFactory.java +++ b/services/src/main/java/org/keycloak/keys/JavaKeystoreKeyProviderFactory.java @@ -56,6 +56,7 @@ public class JavaKeystoreKeyProviderFactory extends AbstractRsaKeyProviderFactor .property(KEYSTORE_PASSWORD_PROPERTY) .property(KEY_ALIAS_PROPERTY) .property(KEY_PASSWORD_PROPERTY) + .property(Attributes.KEY_USE_PROPERTY) .build(); @Override