3 Replies Latest reply on Oct 24, 2017 10:52 PM by jaikiran pai

    How can I set a property on java.security?

    gir489 Newbie

      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?