NoSuchAlgorithmException: TlsPremasterSecret SecretKeyFactory not available in JBoss

Solution Unverified - Updated -

Issue

  • We use an old third party JCA provider (IAIK) in JBoss, but are getting errors from SSL code.
  • javax.net.ssl.SSLException: java.lang.RuntimeException: Could not generate secret

    Caused by: java.security.NoSuchAlgorithmException: TlsPremasterSecret SecretKeyFactory not available
            at javax.crypto.SecretKeyFactory.<init>(SecretKeyFactory.java:121) [jce.jar:1.7.0_10]
            at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:159) [jce.jar:1.7.0_10]
            at iaik.security.dh.DHKeyAgreement.engineGenerateSecret(Unknown Source)
            at javax.crypto.KeyAgreement.generateSecret(KeyAgreement.java:632) [jce.jar:1.7.0_10]
            at sun.security.ssl.DHCrypt.getAgreedSecret(DHCrypt.java:212) [jsse.jar:1.7.0_21]
    

Environment

  • Red Hat JBoss Enterprise Application Platform
    • any version
  • registering a third-party JCA provider
  • Java Runtime Environment 1.6 or later

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content