@ShellMethod(key = "generate-key", value = "Generate signing/encryption crypto keys for CAS settings")
    public String generateKey(@ShellOption(value = {"key-size", "--key-size"},
        defaultValue = "256", help = "Key size") final int keySize) {
        val key = EncodingUtils.generateJsonWebKey(keySize);
        LOGGER.info(key);
        return key;
    }
Generate key.

@param keySize the key size
@return the string
support/cas-server-support-shell-core/src/main/java/org/apereo/cas/shell/commands/cipher/GenerateCryptoKeysCommand.java