KeyManagerFactory error using benchmark in keycloak21.1

I have edited the gatling.conf file in keycloak-benchmark-0.9-SNAPSHOT.jar to use my keystore

The SSL section in gatling.conf looks like
ssl {
useOpenSsl = true # if OpenSSL should be used instead of JSSE (only the latter can be debugged with -Djavax.net.debug=ssl)
useOpenSslFinalizers = false # if OpenSSL contexts should be freed with Finalizer or if using RefCounted is fine
handshakeTimeout = 10000 # TLS handshake timeout in millis
useInsecureTrustManager = true # Use an insecure TrustManager that trusts all server certificates
enabledProtocols = # Array of enabled protocols for HTTPS, if empty use Netty’s defaults
enabledCipherSuites = # Array of enabled cipher suites for HTTPS, if empty enable all available ciphers
sessionCacheSize = 0 # SSLSession cache size, set to 0 to use JDK’s default
sessionTimeout = 0 # SSLSession timeout in seconds, set to 0 to use JDK’s default (24h)
enableSni = true # When set to true, enable Server Name indication (SNI)
keyStore {
type = “PKCS12” # Type of SSLContext’s KeyManagers store, possible values are jks and p12
file = “/usr/local/keycloak/conf/server.keystore” # Location of SSLContext’s KeyManagers store
password = “secret” # Password for SSLContext’s KeyManagers store
algorithm = “SHA256withRSA” # Algorithm used SSLContext’s KeyManagers store, typically RSA
}

My keystore (used by a running KC 21.1 server ) is
[root@ip-10-134-17-232 bin]# keytool -list -v -keystore /usr/local/keycloak/conf/server.keystore
Enter keystore password:
Keystore type: PKCS12
Keystore provider: SUN

Your keystore contains 1 entry

Alias name: localhost
Creation date: Apr 27, 2023
Entry type: PrivateKeyEntry
Certificate chain length: 1
Certificate[1]:
Owner: CN=Server Administrator, O=LytxKeycloak, C=US
Issuer: CN=Server Administrator, O=LytxKeycloak, C=US
Serial number: 361bb80f
Valid from: Thu Apr 27 17:50:21 UTC 2023 until: Fri Apr 26 17:50:21 UTC 2024
Certificate fingerprints:
SHA1: 89:98:8E:DF:B4:41:8F:88:79:DF:15:FD:28:1B:AB:6A:54:40:A1:E0
SHA256: 49:15:5A:39:DD:10:5F:73:2D:0C:FB:12:5E:D6:A7:5A:2D:10:18:C8:EF:5E:7B:C4:94:F9:41:1C:D9:F4:B1:D5
Signature algorithm name: SHA256withRSA
Subject Public Key Algorithm: 2048-bit RSA key
Version: 3

Extensions:

#1: ObjectId: 2.5.29.14 Criticality=false
SubjectKeyIdentifier [

I run the benchmark like this+ CLASSPATH_OPTS=‘/usr/local/keycloak-benchmark/keycloak-benchmark-0.9-SNAPSHOT/bin/…/lib/*’

  • exec java -server -Xmx1G -XX:+HeapDumpOnOutOfMemoryError -Dserver-url=https://a.b.c.d:8443 -Drealm-name=test-realm -cp /usr/local/keycloak-benchmark/keycloak-benchmark-0.9-SNAPSHOT/bin/…/lib/keycloak-benchmark-0.9-SNAPSHOT.jar io.gatling.app.Gatling -bf /usr/local/keycloak-benchmark/keycloak-benchmark-0.9-SNAPSHOT/bin -rf /usr/local/keycloak-benchmark/keycloak-benchmark-0.9-SNAPSHOT/bin/…/results -s keycloak.scenario.authentication.AuthorizationCode
    Exception in thread “main” java.security.NoSuchAlgorithmException: SHA256withRSA KeyManagerFactory not available
    at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
    at java.base/javax.net.ssl.KeyManagerFactory.getInstance(KeyManagerFactory.java:148)
    at io.gatling.commons.util.Ssl$.$anonfun$newKeyManagerFactory$1(Ssl.scala:51)
    at io.gatling.commons.util.Io$.withCloseable(Io.scala:119)
    at io.gatling.commons.util.Ssl$.newKeyManagerFactory(Ssl.scala:46)
    at io.gatling.core.config.GatlingConfiguration$.$anonfun$sslConfiguration$1(GatlingConfiguration.scala:190)
    at scala.Option.map(Option.scala:230)
    at io.gatling.core.config.GatlingConfiguration$.sslConfiguration(GatlingConfiguration.scala:190)
    at io.gatling.core.config.GatlingConfiguration$.mapToGatlingConfig(GatlingConfiguration.scala:280)
    at io.gatling.core.config.GatlingConfiguration$.load(GatlingConfiguration.scala:107)
    at io.gatling.app.Gatling$.start(Gatling.scala:70)
    at io.gatling.app.Gatling$.fromArgs(Gatling.scala:45)
    at io.gatling.app.Gatling$.main(Gatling.scala:37)
    at io.gatling.app.Gatling.main(Gatling.scala)

java --version
openjdk 11.0.1 2018-10-16
OpenJDK Runtime Environment 18.9 (build 11.0.1+13)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.1+13, mixed mode)
[root@ip-10-134-17-232 bin]#

Anyone know WHY Im seeing the factory error?
thanks