Error: Secret key not set

My app runs on wildfly, and I have a keycloak-config.cli file that issues some commands that help to verify tokens etc. When switching my application from using RS256 signing to HS512 signing, (thus switching from publicKey to secretKey), I cannot find a way to set the value of my secret key.

Further detail in my stack overflow post.

Does anyone have experience with this?