IBM Support

PH53918: UNSUPPORTEDOPERATIONEXCEPTION WHEN CREATING LTPA KEYS AFTER MOVING TO 22.0.0.12 WITH JAVA 11 ON Z/OS

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • After moving to 22.0.0.12 with Java 11, the following exception
    may be seen when the server generates LTPA keys on startup:
    .
    java.lang.UnsupportedOperationException: Hardware error,
    function getPrivateExponent has no meaning in hardware
    at ibm.crypto.hdwrcca/com.ibm.crypto.hdwrCCA.provider.RSAPriva
    teHWKey.getPrivateExponent(RSAPrivateHWKey.java:86)
    at com.ibm.ws.crypto.ltpakeyutil.LTPACrypto.rsaKey(LTPACrypto.
    java:1058)
    at com.ibm.ws.crypto.ltpakeyutil.LTPADigSignature.generateRSAK
    eys(LTPADigSignature.java:49)
    at com.ibm.ws.crypto.ltpakeyutil.LTPADigSignature.generateLTPA
    KeyPair(LTPADigSignature.java:76)
    at com.ibm.ws.crypto.ltpakeyutil.LTPAKeyFileUtilityImpl.genera
    teLTPAKeys(LTPAKeyFileUtilityImpl.java:50)
    at com.ibm.ws.security.token.ltpa.internal.LTPAKeyFileCreatorI
    mpl.createLTPAKeysFile(LTPAKeyFileCreatorImpl.java:62)
    ...
    This problem only occurs when using IBMJCECCA as a provider on
    Java 11.
    

Local fix

  • Use OpenJCEPlus as the provider by editing the java.security
    file and setting it as the top provider:
    
    security.provider.1=IBMJCECCA      <---- Remove this or swap it
                                           for security.provider.2
    
    security.provider.2=OpenJCEPlus    <----
    
    security.provider.3=IBMZSecurity
    
    security.provider.4=SUN
    
    security.provider.5=SunRsaSign
    ...
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:  All users of IBM WebSphere Application      *
    *                  Server Liberty who configures Hardware      *
    *                  Crypto providers in java.security file      *
    ****************************************************************
    * PROBLEM DESCRIPTION: When the server generates LTPA keys on  *
    *                      startup,                                *
    *                      java.lang.UnsupportedOperationException *
    *                      is thrown.                              *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    The above error is thrown when the server starts up. As a
    result, LTPA authentication is unavailable.
    

Problem conclusion

Temporary fix

  • In java.security file, place JCE provider above the Hardware
    provider.
    

Comments

APAR Information

  • APAR number

    PH53918

  • Reported component name

    LIBERTY PROF -

  • Reported component ID

    5655W6514

  • Reported release

    CD0

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2023-04-14

  • Closed date

    2023-04-17

  • Last modified date

    2023-06-16

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    LIBERTY PROF -

  • Fixed component ID

    5655W6514

Applicable component levels

[{"Business Unit":{"code":"BU011","label":"Systems - zSystems software"},"Product":{"code":"SG19O","label":"WebSphere Application Server for z\/OS"},"Platform":[{"code":"PF054","label":"z Systems"}],"Version":"CD0"}]

Document Information

Modified date:
16 June 2023