"java.security.NoSuchAlgorithmException: SunTlsRsaPremasterSecret KeyGenerator not available" when running secured JBoss Fuse as system service.

Solution Verified - Updated -

Issue

I am trying to invoke a HTTPS based service that runs inside JBoss Fuse 6.1 that is running as a system service.
While the same service works just fine on my local JBoss Fuse installation, it fails to perform when JBoss Fuse runs as a system service.
The following error is thrown:

  Caused by: java.security.NoSuchAlgorithmException: SunTlsRsaPremasterSecret KeyGenerator not available
    at javax.crypto.KeyGenerator.<init>(KeyGenerator.java:158)[:1.7.0_51]
    at javax.crypto.KeyGenerator.getInstance(KeyGenerator.java:207)[:1.7.0_51]
    at sun.security.ssl.JsseJce.getKeyGenerator(JsseJce.java:267)[:1.7.0_67]
    at sun.security.ssl.RSAClientKeyExchange.<init>(RSAClientKeyExchange.java:106)[:1.7.0_67]

Environment

  • JBoss Fuse 6.1 running as system service

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