5 Replies Latest reply on Nov 30, 2017 1:08 AM by mchoma

    How can I set a property on java.security?

    gir489

      With the new Java 8 U151 update, they've introduced a new property for java.security called crypto.policy, so now we don't need to ferry around those stupid unlimited strength JARs...

       

      I looked in the documentation and found this: Security subsystem configuration - WildFly 10 - Project Documentation Editor

       

      It mentions:

      security-properties

      This element is used to specify additional properties as required by the security subsystem, properties are specified in the following format:

       

      <security-properties>

        <property name="..." value="..."/>

      </security-properties>

      The property element can be repeated as required for as many properties need to be defined.

      Each property specified is set on the java.security.Security class.

      So I put

      <security-properties>

           <property name="crypto.policy" value="unlimited"/>

      </security-properties>

       

      under <subsystem xmlns="urn:jboss:domain:security:1.2">

      I don't get any XML exceptions when starting the server, but I'm still getting exceptions related to key strength:

      14:50:44,542 INFO  java.security.InvalidKeyException: Illegal key size

      Any ideas?