Re: [reSIProcate-users] TLS connection
I changed the testTls.cxx application to use only one self signed certificate
(generated using openssl) for domain 127.0.0.1, used for all the created sip
stacks (to avoid creation of too many certificates).
The following one is the changed code:
SipStack* stack[MaxStacks];
Security* securityObject = new Security("C:\\sipCerts");
for ( int s=0; s<numStacks; s++)
{
stack[s] = new SipStack(securityObject);
//Data domain = Data("example") + Data(s) +".com";
Data domain("127.0.0.1");
#ifdef USE_DTLS
stack[s]->addTransport(DTLS, 25000+s,version, StunDisabled,
bindInterface, domain);
#else
stack[s]->addTransport(TLS, 25000+s,version, StunDisabled,
bindInterface, domain);
#endif
}
Dario
________________________________
-----Original Message-----
From: Jeremy Geras [mailto:jgeras@xxxxxxxxxxxxxxx]
Sent: martedì 2 settembre 2008 22.03
To: Scott Godin; Dario Bozzali; resiprocate-users@xxxxxxxxxxxxxxx
Cc: Byron Campen
Subject: RE: [reSIProcate-users] TLS connection
I'm following up with folks at this end...
Is there a cert somewhere that I need before I can run testTls?
Jeremy Geras
Software Developer
CounterPath Corporation
> -----Original Message-----
> From: Scott Godin [mailto:slgodin@xxxxxxxxxxxx]
> Sent: Tuesday, September 02, 2008 11:00
> To: Dario Bozzali; resiprocate-users@xxxxxxxxxxxxxxx
> Cc: Jeremy Geras; Byron Campen
> Subject: RE: [reSIProcate-users] TLS connection
>
> There was some recent changes to this code - I haven't had a chance to
> try them out yet.
>
> Jeremy - any ideas on this one? This is likely related your commit
> 8192, that Byron rolled into main line.
>
> Scott
>
> -----Original Message-----
> From: resiprocate-users-bounces@xxxxxxxxxxxxxxx
> [mailto:resiprocate-users-bounces@xxxxxxxxxxxxxxx] On Behalf Of Dario
> Bozzali
> Sent: Monday, September 01, 2008 11:24 AM
> To: resiprocate-users@xxxxxxxxxxxxxxx
> Subject: [reSIProcate-users] TLS connection
>
> Hi all,
> I have a problem with tls connection, using Resiprocate main revision
> 8218, since my application doesn't work anymore. I tried also test
> application testTls.cxx and I encountered the same issue: a tls
> connection cannot be established. Using an older version of
> TlsConnection.cxx (8123 instead of 8201) the test application is
> working.
> Did anyone else encounter similar issue?
> Thank you in advance.
> Dario.
>
>
>
> DEBUG | 20080901-170226.461 | test | RESIP:TRANSPORT | 11292 |
> transport.cxx:213 | Adding message to tx buffer to: [ V4
> 127.0.0.1:25000 TLS target domain=127.0.0.1 mFlowKey=0 ] DEBUG |
> 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> tcpbasetransport.cxx:131 | Processing write for [ V4 127.0.0.1:25000
> TLS target domain=127.0.0.1 mFlowKey=0 ] DEBUG | 20080901-170226.571 |
> test | RESIP:TRANSPORT | 11292 |
> connectionmanager.cxx:77 | Could not find a connection for [ V4
> 127.0.0.1:25000 TLS target domain=127.0.0.1 mFlowKey=0 ] DEBUG |
> 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> internaltransport.cxx:86 | Creating fd=320 V4/TCP DEBUG |
> 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> tcpbasetransport.cxx:170 | Opening new connection to [ V4
> 127.0.0.1:25000 TLS target domain=127.0.0.1 mFlowKey=0 ] DEBUG |
> 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> connectionbase.cxx:46 | ConnectionBase::ConnectionBase, who: [ V4
> 127.0.0.1:25000 TLS target domain=127.0.0.1 mFlowKey=0 ] 012F57D8
> DEBUG | 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> connectionbase.cxx:59 | No compression library available: 012F57D8
> INFO | 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> tlsconnection.cxx:40 | Creating TLS connection for domain 127.0.0.1 [
> V4
> 127.0.0.1:25000 TLS target domain=127.0.0.1 mFlowKey=0 ] on 320 DEBUG
> | 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> tlsconnection.cxx:57 | Trying to form TLS connection - acting as
> client DEBUG | 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> tcpbasetransport.cxx:110 | Received TCP connection from: [ V4
> 127.0.0.1:4490 TLS target domain=unspecified mFlowKey=0 ] as fd=300
> DEBUG | 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> connectionmanager.cxx:77 | Could not find a connection for [ V4
> 127.0.0.1:4490 TLS target domain=unspecified mFlowKey=0 ] DEBUG |
> 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> connectionbase.cxx:46 | ConnectionBase::ConnectionBase, who: [ V4
> 127.0.0.1:4490 TLS target domain=unspecified mFlowKey=0 ] 01A284E0
> DEBUG | 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> connectionbase.cxx:59 | No compression library available: 01A284E0
> INFO | 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> tlsconnection.cxx:40 | Creating TLS connection for domain 127.0.0.1 [
> V4
> 127.0.0.1:4490 TLS target domain=unspecified mFlowKey=0 ] on 300 DEBUG
> | 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> tlsconnection.cxx:47 | Trying to form TLS connection - acting as
> server INFO | 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> tlsconnection.cxx:161 | TLS handshake starting (client mode) ERR |
> 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> tlsconnection.cxx:195 | TLS connection failed ok=0 err=5
> error:00000005:lib(0):func(0):DH lib ERR | 20080901-170226.571 | test
> | RESIP:TRANSPORT | 11292 |
> tlsconnection.cxx:217 | (SSL Error syscall) ERR | 20080901-170226.571
> | test | RESIP:TRANSPORT | 11292 |
> tlsconnection.cxx:218 | Error may be because trying ssl connection to
> tls server, errno=0 INFO | 20080901-170226.571 | test |
> RESIP:TRANSPORT | 11292 |
> transport.cxx:188 | Some other error (0): No error ERR |
> 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> tlsconnection.cxx:252 | Couldn't TLS connect DEBUG |
> 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> tlsconnection.cxx:488 | Transportwrite--Handshake complete, in Broken
> calling write INFO | 20080901-170226.571 | test | RESIP:TRANSPORT |
> 11292 |
> connection.cxx:119 | Write failed on socket: 320, closing connection
> DEBUG | 20080901-170226.571 | test | RESIP:TRANSPORT | 11292 |
> connectionbase.cxx:86 | ConnectionBase::~ConnectionBase 012F57D8 INFO
> | 20080901-170226.571 | test | RESIP:TRANSACTION | 11292 |
> tuselector.cxx:85 | Sending ConnectionTerminated [ V4 127.0.0.1:25000
> TLS target domain=127.0.0.1 mFlowKey=320 ] to TUs STACK |
> 20080901-170226.571 | test | RESIP:TRANSACTION | 11292 |
> transactionstate.cxx:350 | Found matching transaction for
> TransportFailure: e303367ad205367a -> tid=e303367ad205367a [
> ClientNonInvite/Trying reliable target=[ V4 0.0.0.0:0
> UNKNOWN_TRANSPORT target domain=unspecified mFlowKey=0 ]] STACK |
> 20080901-170226.571 | test | RESIP:TRANSACTION | 11292 |
> transactionstate.cxx:655 | TransactionState::processClientNonInvite:
> TransportFailure: e303367ad205367a
> _______________________________________________
> resiprocate-users mailing list
> resiprocate-users@xxxxxxxxxxxxxxx
> List Archive: http://list.resiprocate.org/archive/resiprocate-users/