Author |
Message
|
gecs |
Posted: Wed Sep 17, 2014 7:18 am Post subject: Exception: SSLContext Default implementation not found |
|
|
 Acolyte
Joined: 14 Nov 2007 Posts: 58
|
Hi everybody,
I have this result after call HTTP Request:
Code: |
(0x01000000:Name ):SocketException = (
(0x03000000:NameValue):File = '/build/S700_P/src/WebServices/WSLibrary/ImbSocket.cpp' (CHARACTER)
(0x03000000:NameValue):Line = 1017 (INTEGER)
(0x03000000:NameValue):Function = 'ImbSocketJNIManager::handleGeneralJavaException' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 3165 (INTEGER)
(0x03000000:NameValue):Text = 'An error occurred whilst performing an SSL socket operation' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'createSocket' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'java.net.SocketException: java.security.NoSuchAlgorithmException: SSLContext Default implementation not found: ' (CHARACTER)
)
)
|
Adittional info:
- WMB ver: 7.0.0.1
- MQver: 7.0
- I've installed the .cer file in /opt/ibm/mqsi/7.0/jre16/lib/security/cacerts
- I don't know what happened. The MB flow was working correctly.
Broker Registry Info
Quote: |
BrokerRegistry
uuid='BrokerRegistry'
brokerKeystoreType='JKS'
brokerKeystoreFile=''
brokerKeystorePass='brokerKeystore::password'
brokerTruststoreType='JKS'
brokerTruststoreFile=''
brokerTruststorePass='brokerTruststore::password'
httpConnectorPortRange=''
httpsConnectorPortRange=''
modeExtensions=''
operationMode='enterprise'
shortDesc=''
longDesc=''
|
Any suggestions will help...
Thanks in advance. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Sep 17, 2014 7:55 am Post subject: Re: Exception: SSLContext Default implementation not found |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
gecs wrote: |
WMB ver: 7.0.0.1 |
Are you aware that 7.0.0.3 is the lowest supported version of WMB, mostly because 7.0.0.0 - 7.0.0.2 sucked?
gecs wrote: |
I don't know what happened. The MB flow was working correctly. |
The MB flow was working correctly when exactly? Before you added the SSL configuration? Before you added the cert? Before you replaced an existing cert? What happens when you change it back? Does the error persist? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Sep 17, 2014 7:58 am Post subject: Re: Exception: SSLContext Default implementation not found |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Also just noticed this:
gecs wrote: |
Broker Registry Info
Quote: |
BrokerRegistry
uuid='BrokerRegistry'
brokerKeystoreType='JKS'
brokerKeystoreFile=''
brokerKeystorePass='brokerKeystore::password'
brokerTruststoreType='JKS'
brokerTruststoreFile=''
brokerTruststorePass='brokerTruststore::password'
httpConnectorPortRange=''
httpsConnectorPortRange=''
modeExtensions=''
operationMode='enterprise'
shortDesc=''
longDesc=''
|
|
So you've added the cert to the installation directory, rather than defining your own objects as is more normal, and then not referenced any files in the broker SSL configuration? You then wonder why the broker is complaining that the configuration is missing?
Gosh I need  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Sep 17, 2014 7:58 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
I'm really curious what lead you to the particular steps you took, as being the correct way to implement SSL for Broker.
It doesn't appear to match the documentation at all. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Sep 17, 2014 7:59 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mqjeff wrote: |
I'm really curious what lead you to the particular steps you took, as being the correct way to implement SSL for Broker.
It doesn't appear to match the documentation at all. |
I wish I'd thought to phrase it that way.
Still no  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Sep 17, 2014 8:06 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Vitor wrote: |
Still no  |
I remembered mine today. |
|
Back to top |
|
 |
gecs |
Posted: Wed Sep 17, 2014 8:53 am Post subject: |
|
|
 Acolyte
Joined: 14 Nov 2007 Posts: 58
|
Thanks for your suggestions, Vitor & mqjeff. Below, my comments:
- The MB flow was working Ok. I haven't done any SSL configuration. All I did was install the certificate in "cacerts" file. (i'm not the admin )
- Sorry, WMB ver is 7.0.0.4 |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Sep 17, 2014 9:00 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
gecs wrote: |
- The MB flow was working Ok. I haven't done any SSL configuration. All I did was install the certificate in "cacerts" file. (i'm not the admin ) |
Ok. That was the wrong procedure to follow.
You should ask your admin to configure SSL for you, and provide him the certs.
Or you should go read the Infocenter and follow the correct procedure. |
|
Back to top |
|
 |
Vitor |
Posted: Wed Sep 17, 2014 9:22 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
gecs wrote: |
I haven't done any SSL configuration. |
gecs wrote: |
Code: |
SSLContext Default implementation not found |
|
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
gecs |
Posted: Mon Sep 22, 2014 3:42 pm Post subject: |
|
|
 Acolyte
Joined: 14 Nov 2007 Posts: 58
|
SOLVED!
Diagnostic: Problem was caused by permissions to "cacert" file (access should be reviewed - UGO (User, Groups and Others)).
Thanks to everybody  |
|
Back to top |
|
 |
|