Disabling TLS1.0 TLS1.1

I am trying to disable TLS1.0 and TLS1.1 and mandating TLS1.2

I am trying to do it in jvm > bin/standalone.conf:
JAVA_OPTS="$JAVA_OPTS ‑Djdk.tls.client.protocols=TLSv1.2"

Tend to receive:

JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true ‑Djdk.tls.client.protocols=TLSv1.2

=========================================================================

Error: Could not find or load main class ‑Djdk.tls.client.protocols=TLSv1.2

This may sound weird but it seems you copy-pasted it from somewhere and it contains illegal characters (for Java). Try to retype it manually and it should work (I just checked it).

1 Like

Yes you are very correct. Thanks to you :smiley: