On 3 June 2015 at 15:54, Erik Aschenbrenner <[email protected]> wrote:
> Ok, now I have another problem.
>
> My program now hangs when creating the first jms session
> (Connection.createSession (false, Session.AUTO_ACKNOWLEDGE);
>
> Any ideas?
>
> If I'm changing "amqp" to "amqps" in my connection url
> (amqps://123.12.12.123:12345?ssl=true&ssl-cert-alias=xxxxx&clientid=ConnectionTestEAEx&amqp.traceFrames=true&remote-host=default&sync-publish=false&trust-store=C:/Users/easchenb/_F7_Zertifikate/XXXXX.ts&trust-store-password=123456&key-store=C:/Users/easchenb/_F7_Zertifikate/XXXXX.ks&key-store-password=123456)
>
> I'm getting a SSL exception when trying to create a JMS connection:
> [main] ERROR org.apache.qpid.jms.JmsConnectionFactory - Failed to create JMS
> Provider instance for: amqps
> javax.jms.JMSException: General SSLEngine problem
>         at
> org.apache.qpid.jms.exceptions.JmsExceptionSupport.create(JmsExceptionSupport.java:77)
>         at
> org.apache.qpid.jms.JmsConnectionFactory.createConnection(JmsConnectionFactory.java:183)
>         at
> org.apache.qpid.jms.JmsConnectionFactory.createConnection(JmsConnectionFactory.java:165)
>         at
> de.icubic.api.eurex.repo.f7.connection.F7ConnectionTest.<init>(F7ConnectionTest.java:120)
>         at
> de.icubic.api.eurex.repo.f7.connection.F7ConnectionTest.main(F7ConnectionTest.java:92)
> Caused by: javax.net.ssl.SSLHandshakeException: General SSLEngine problem
>
>
> Caused by: java.security.cert.CertificateException: No subject alternative
> names matching IP address 123.12.12.123:12345 found
>         at
> sun.security.util.HostnameChecker.matchIP(HostnameChecker.java:154)
>         at sun.security.util.HostnameChecker.match(HostnameChecker.java:91)
>         at
> sun.security.ssl.X509TrustManagerImpl.checkIdentity(X509TrustManagerImpl.java:347)
>         at
> sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:255)
>         at
> sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:138)
>         at
> sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1328)
>
> Regards,
> Erik
>
>



Hi Erik,

You still look to be using the URI for the earlier client, you will
also need to update the URI to the options used by the new client.
They are detailed in the documentation I linked to earlier:

http://qpid.apache.org/components/jms/index.html#documentation

Specifically http://qpid.apache.org/releases/qpid-jms-0.2.0/docs/index.html
for the current release

Robbie

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to