activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: ACTIVEMQ-CPP. Using ssl
Date Thu, 02 Dec 2010 12:58:04 GMT
The most common problem is that you are using an ip address instead of a the
hostname that should be set in the commonName field in the Certificate.

Regards
Tim
www.fusesource.com

On Thu, Dec 2, 2010 at 6:16 AM, Oscar Pernas <oscar@pernas.es> wrote:

> Hi all,
>
> I've set the debug info to activemq and I'm seeing this:
>
> 2010-12-02 06:17:00,160 | DEBUG | Sending: WireFormatInfo { version=5,
> properties={CacheSize=1024, CacheEnabled=true, SizePrefixDisabled=false,
> MaxInactivityDurationInitalDelay=10000, TcpNoDelayEnabled=true,
> MaxInactivityDuration=30000, TightEncodingEnabled=true,
> StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]} |
> org.apache.activemq.transport.WireFormatNegotiator | ActiveMQ Transport
> Initiator: /127.0.0.1:57319
> 2010-12-02 06:17:00,385 | DEBUG | Sending: WireFormatInfo { version=5,
> properties={CacheSize=1024, CacheEnabled=true, SizePrefixDisabled=false,
> MaxInactivityDurationInitalDelay=10000, TcpNoDelayEnabled=true,
> MaxInactivityDuration=30000, TightEncodingEnabled=true,
> StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]} |
> org.apache.activemq.transport.WireFormatNegotiator | ActiveMQ Transport
> Initiator: /127.0.0.1:59805
> 2010-12-02 06:17:00,479 | DEBUG | Sending: WireFormatInfo { version=5,
> properties={CacheSize=1024, CacheEnabled=true, SizePrefixDisabled=false,
> MaxInactivityDurationInitalDelay=10000, TcpNoDelayEnabled=true,
> MaxInactivityDuration=30000, TightEncodingEnabled=true,
> StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]} |
> org.apache.activemq.transport.WireFormatNegotiator | ActiveMQ Transport
> Initiator: /127.0.0.1:43111
> 2010-12-02 06:17:00,611 | DEBUG | Sending: WireFormatInfo { version=5,
> properties={CacheSize=1024, CacheEnabled=true, SizePrefixDisabled=false,
> MaxInactivityDurationInitalDelay=10000, TcpNoDelayEnabled=true,
> MaxInactivityDuration=30000, TightEncodingEnabled=true,
> StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]} |
> org.apache.activemq.transport.WireFormatNegotiator | ActiveMQ Transport
> Initiator: /127.0.0.1:40524
> 2010-12-02 06:17:00,772 | DEBUG | Sending: WireFormatInfo { version=5,
> properties={CacheSize=1024, CacheEnabled=true, SizePrefixDisabled=false,
> MaxInactivityDurationInitalDelay=10000, TcpNoDelayEnabled=true,
> MaxInactivityDuration=30000, TightEncodingEnabled=true,
> StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]} |
> org.apache.activemq.transport.WireFormatNegotiator | ActiveMQ Transport
> Initiator: /127.0.0.1:38363
> 2010-12-02 06:17:01,003 | DEBUG | Sending: WireFormatInfo { version=5,
> properties={CacheSize=1024, CacheEnabled=true, SizePrefixDisabled=false,
> MaxInactivityDurationInitalDelay=10000, TcpNoDelayEnabled=true,
> MaxInactivityDuration=30000, TightEncodingEnabled=true,
> StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]} |
> org.apache.activemq.transport.WireFormatNegotiator | ActiveMQ Transport
> Initiator: /127.0.0.1:51385
> 2010-12-02 06:17:01,391 | DEBUG | Sending: WireFormatInfo { version=5,
> properties={CacheSize=1024, CacheEnabled=true, SizePrefixDisabled=false,
> MaxInactivityDurationInitalDelay=10000, TcpNoDelayEnabled=true,
> MaxInactivityDuration=30000, TightEncodingEnabled=true,
> StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]} |
> org.apache.activemq.transport.WireFormatNegotiator | ActiveMQ Transport
> Initiator: /127.0.0.1:44965
> 2010-12-02 06:17:02,126 | DEBUG | Sending: WireFormatInfo { version=5,
> properties={CacheSize=1024, CacheEnabled=true, SizePrefixDisabled=false,
> MaxInactivityDurationInitalDelay=10000, TcpNoDelayEnabled=true,
> MaxInactivityDuration=30000, TightEncodingEnabled=true,
> StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]} |
> org.apache.activemq.transport.WireFormatNegotiator | ActiveMQ Transport
> Initiator: /127.0.0.1:44546
> 2010-12-02 06:17:03,479 | DEBUG | Sending: WireFormatInfo { version=5,
> properties={CacheSize=1024, CacheEnabled=true, SizePrefixDisabled=false,
> MaxInactivityDurationInitalDelay=10000, TcpNoDelayEnabled=true,
> MaxInactivityDuration=30000, TightEncodingEnabled=true,
> StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]} |
> org.apache.activemq.transport.WireFormatNegotiator | ActiveMQ Transport
> Initiator: /127.0.0.1:57089
> 2010-12-02 06:17:04,230 | DEBUG | Checkpoint started. |
> org.apache.activemq.store.kahadb.MessageDatabase | ActiveMQ Journal
> Checkpoint Worker
> 2010-12-02 06:17:04,232 | DEBUG | Checkpoint done. |
> org.apache.activemq.store.kahadb.MessageDatabase | ActiveMQ Journal
> Checkpoint Worker
> 2010-12-02 06:17:06,105 | DEBUG | Sending: WireFormatInfo { version=5,
> properties={CacheSize=1024, CacheEnabled=true, SizePrefixDisabled=false,
> MaxInactivityDurationInitalDelay=10000, TcpNoDelayEnabled=true,
> MaxInactivityDuration=30000, TightEncodingEnabled=true,
> StackTraceEnabled=true}, magic=[A,c,t,i,v,e,M,Q]} |
> org.apache.activemq.transport.WireFormatNegotiator | ActiveMQ Transport
> Initiator: /127.0.0.1:58045
> 2010-12-02 06:17:09,233 | DEBUG | Checkpoint started. |
> org.apache.activemq.store.kahadb.MessageDatabase | ActiveMQ Journal
> Checkpoint Worker
> 2010-12-02 06:17:09,235 | DEBUG | Checkpoint done. |
> org.apache.activemq.store.kahadb.MessageDatabase | ActiveMQ Journal
> Checkpoint Worker
> 2010-12-02 06:17:09,238 | DEBUG | Expiring messages .. |
> org.apache.activemq.broker.region.Queue | ActiveMQ Scheduler
> 2010-12-02 06:17:09,238 | DEBUG | example.A toPageIn: 0, Inflight: 0,
> pagedInMessages.size 0 | org.apache.activemq.broker.region.Queue | ActiveMQ
> Scheduler
> 2010-12-02 06:17:09,273 | DEBUG | Expiring messages .. |
> org.apache.activemq.broker.region.Queue | ActiveMQ Scheduler
> 2010-12-02 06:17:09,273 | DEBUG | example.A toPageIn: 0, Inflight: 0,
> pagedInMessages.size 0 | org.apache.activemq.broker.region.Queue | ActiveMQ
> Scheduler
> 2010-12-02 06:17:10,336 | DEBUG | Transport failed: java.io.IOException:
> Wire format negotiation timeout: peer did not send his wire format. |
> org.apache.activemq.broker.TransportConnection.Transport | Async Exception
> Handler
> java.io.IOException: Wire format negotiation timeout: peer did not send his
> wire format.
>        at
>
> org.apache.activemq.transport.WireFormatNegotiator.oneway(WireFormatNegotiator.java:98)
>        at
> org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40)
>        at
>
> org.apache.activemq.broker.TransportConnection.dispatch(TransportConnection.java:1190)
>        at
>
> org.apache.activemq.broker.TransportConnection.processDispatch(TransportConnection.java:779)
>        at
>
> org.apache.activemq.broker.TransportConnection.iterate(TransportConnection.java:815)
>        at
>
> org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98)
>        at
>
> org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36)
> 2010-12-02 06:17:10,344 | DEBUG | Stopping connection: /127.0.0.1:57319 |
> org.apache.activemq.broker.TransportConnection | ActiveMQ Transport
> Stopper:
> /127.0.0.1:57319
> 2010-12-02 06:17:10,345 | DEBUG | Stopping transport
> ssl:///127.0.0.1:57319| org.apache.activemq.transport.tcp.TcpTransport
> | ActiveMQ Transport
> Stopper: /127.0.0.1:57319
> 2010-12-02 06:17:10,350 | DEBUG | Stopped transport: /127.0.0.1:57319 |
> org.apache.activemq.broker.TransportConnection | ActiveMQ Transport
> Stopper:
> /127.0.0.1:57319
> 2010-12-02 06:17:10,351 | DEBUG | Connection Stopped: /127.0.0.1:57319 |
> org.apache.activemq.broker.TransportConnection | ActiveMQ Transport
> Stopper:
> /127.0.0.1:57319
> 2010-12-02 06:17:10,417 | DEBUG | Transport failed: java.io.IOException:
> Wire format negotiation timeout: peer did not send his wire format. |
> org.apache.activemq.broker.TransportConnection.Transport | Async Exception
> Handler
>
>
> Any idea please?
>
>
> 2010/12/1 Oscar Pernas <oscar@pernas.es>
>
> > Hi all,
> >
> > Im trying to use ssl with activemq-cpp. Im trying to give you a manual of
> > what I've do, and please correct me if something is wrong (something is
> > wrong because is not working)
> >
> >  Generatet the keystore for the broker
> >
> >  keytool -genkey -alias broker -keyalg RSA -keystore broker.ks
> >
> > Export the cert of the broker
> >
> > keytool -export -alias broker -keystore broker.ks -file broker.cert
> >
> > Converting into pem format:
> >
> > openssl x509 -inform der -in broker.cert -out broker.pem
> >
> >
> > Broker started adding
> >
> > <transportConnector name="ssl" uri="ssl://0.0.0.0:61617" />
> >
> > to activemq.xml
> >
> > I've defined:
> >
> > export SSL_OPTS="-Djavax.net.ssl.keyStore=/home/opernas/broker.ks
> > -Djavax.net.ssl.keyStorePassword=password"
> >
> > And started broker without error.
> >
> >
> >
> > In my application i've set the line:
> >
> > decaf::lang::System::setProperty( "decaf.net.ssl.trustStore",
> > getCertificate() );
> >
> >
> >
> > But when Im starting the app, the the connection cant be stablished, and
> > its freezes waiting to connect. Whay I'm doing wrong?
> >
> >
> >
> > regards
> >
> >
> >
> > --
> > Óscar Pernas Plaza.
> >
>
>
>
> --
> Óscar Pernas Plaza.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message