[prev in list] [next in list] [prev in thread] [next in thread] 

List:       activemq-users
Subject:    Re: jaasAuthenticationPlugin ans sslContext in karaf
From:       MillieretXavier <xaviermillieret () eaton ! com>
Date:       2017-11-21 16:23:48
Message-ID: 1511281428874-0.post () n4 ! nabble ! com
[Download RAW message or body]

You right I try to have cert-based authentication for AMQP and password-based
authentication for OpenWire

Here my logs (DEBUG) just before a connection
I would like to clarify that without the plugin jaasAuthenticationPlugin,
it's works for a ssl connection.
Like, if I put the pulgin, the sslcontext in the activemq.xml is not take in
count????


2017-11-21 17:18:46,977 | DEBUG | Transport                        | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | Transport
Connection to: tcp://xxx.xx.xxx.xx:51495 failed:
javax.net.ssl.SSLHandshakeException: Remote host closed connection during
handshake
javax.net.ssl.SSLHandshakeException: Remote host closed connection during
handshake
	at
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:992)[:1.8.0_131]
	at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375)[:1.8.0_131]
  at
sun.security.ssl.SSLSocketImpl.readDataRecord(SSLSocketImpl.java:928)[:1.8.0_131]
	at
sun.security.ssl.AppInputStream.read(AppInputStream.java:105)[:1.8.0_131]
	at
org.apache.activemq.transport.tcp.TcpBufferedInputStream.fill(TcpBufferedInputStream.java:50)[97:org.apache.activemq.activemq-osgi:5.12.3]
  at
org.apache.activemq.transport.tcp.TcpTransport$2.fill(TcpTransport.java:609)[97:org.apache.activemq.activemq-osgi:5.12.3]
  at
org.apache.activemq.transport.tcp.TcpBufferedInputStream.readStream(TcpBufferedInputStream.java:72)[97:org.apache.activemq.activemq-osgi:5.12.3]
  at
org.apache.activemq.transport.tcp.TcpBufferedInputStream.read(TcpBufferedInputStream.java:92)[97:org.apache.activemq.activemq-osgi:5.12.3]
  at
org.apache.activemq.transport.tcp.TcpTransport$2.read(TcpTransport.java:599)[97:org.apache.activemq.activemq-osgi:5.12.3]
  at java.io.DataInputStream.readFully(DataInputStream.java:195)[:1.8.0_131]
	at
org.fusesource.hawtbuf.Buffer.readFrom(Buffer.java:412)[97:org.apache.activemq.activemq-osgi:5.12.3]
  at
org.apache.activemq.transport.amqp.AmqpWireFormat.unmarshal(AmqpWireFormat.java:102)[97:org.apache.activemq.activemq-osgi:5.12.3]
  at
org.apache.activemq.transport.tcp.TcpTransport.readCommand(TcpTransport.java:221)[97:org.apache.activemq.activemq-osgi:5.12.3]
  at
org.apache.activemq.transport.tcp.TcpTransport.doRun(TcpTransport.java:213)[97:org.apache.activemq.activemq-osgi:5.12.3]
  at
org.apache.activemq.transport.tcp.TcpTransport.run(TcpTransport.java:196)[97:org.apache.activemq.activemq-osgi:5.12.3]
  at java.lang.Thread.run(Thread.java:748)[:1.8.0_131]
Caused by: java.io.EOFException: SSL peer shut down incorrectly
	at sun.security.ssl.InputRecord.read(InputRecord.java:505)[:1.8.0_131]
	at
sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:973)[:1.8.0_131]
	... 15 more
2017-11-21 17:18:46,981 | DEBUG | ManagementContext                | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | Unregistering
MBean
org.apache.activemq:type=Broker,brokerName=amq-broker,connector=clientConnectors,conne \
ctorName=amqps,connectionViewType=remoteAddress,connectionName=tcp_//xxx.xx.xxx.xx_51495
 2017-11-21 17:18:46,981 | DEBUG | TransportConnection              | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | Stopping
connection: tcp://xxx.xx.xxx.xx:51495
2017-11-21 17:18:46,981 | DEBUG | TcpTransport                     | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | Stopping
transport ssl:///xxx.xx.xxx.xx:51495
2017-11-21 17:18:46,982 | DEBUG | TaskRunnerFactory                | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | Initialized
TaskRunnerFactory[ActiveMQ Task] using ExecutorService:
java.util.concurrent.ThreadPoolExecutor@1e9a61d3[Running, pool size = 0,
active threads = 0, queued tasks = 0, completed tasks = 0]
2017-11-21 17:18:46,983 | DEBUG | TcpTransport                     | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | Closed socket
75b3d3e1[SSL_NULL_WITH_NULL_NULL:
Socket[addr=/xxx.xx.xxx.xx,port=51495,localport=5671]]
2017-11-21 17:18:46,983 | DEBUG | ThreadPoolUtils                  | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | Forcing shutdown
of ExecutorService:
java.util.concurrent.ThreadPoolExecutor@1e9a61d3[Running, pool size = 1,
active threads = 1, queued tasks = 0, completed tasks = 0]
2017-11-21 17:18:46,983 | DEBUG | TransportConnection              | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | Stopped
transport: tcp://xxx.xx.xxx.xx:51495
2017-11-21 17:18:46,987 | DEBUG | TransportConnection              | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | Connection
Stopped: tcp://xxx.xx.xxx.xx:51495
2017-11-21 17:18:47,180 | DEBUG | AmqpAuthenticator                | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | SASL [ANONYMOUS}
Handshake started.
2017-11-21 17:18:47,322 | DEBUG | AbstractInactivityMonitor        | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | WriteChecker:
10021ms elapsed since last write check.
2017-11-21 17:18:47,322 | DEBUG | AbstractInactivityMonitor        | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | WriteChecker:
10019ms elapsed since last write check.
2017-11-21 17:18:47,322 | DEBUG | AbstractInactivityMonitor        | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | Running
WriteCheck[tcp://127.0.0.1:56742]
2017-11-21 17:18:47,322 | DEBUG | AbstractInactivityMonitor        | 97  -
org.apache.activemq.activemq-osgi        - 5.12.3         | Running
WriteCheck[tcp://127.0.0.1:61616]


Regards







--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic