How to configure ssl?

69 views
Skip to first unread message

Isabel Gabard

unread,
Sep 15, 2012, 7:44:50 PM9/15/12
to punja...@googlegroups.com
Hi, I'm a newbe and I'm trying to connecto to gmail as my first test to test punjab configuration and capabilities. I'm working on Windows 7, and have installed python 2.7, twisted python 12, pyopenssl 0.13, win32 openssl 1.0.1.c and lastest mingw 32. When I run punjab and make a request to initiate an xmpp connection with gmail I get the following log in punjab. I guess that it may be related to ssl configuration, but I don't know how or where to look for. I would really appreciate any comment or direction.

2012-09-15 20:29:07-0300 [HTTPChannel,1,169.254.58.130] <body rid='1625929481' x
mlns='http://jabber.org/protocol/httpbind' to='gmail.com' xml:lang='en' wait='60
' hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:
xmpp='urn:xmpp:xbosh'/>
2012-09-15 20:29:07-0300 [HTTPChannel,1,169.254.58.130] Session Created : 67a1b5
0315d75a1a2723c71a49132a853ad2b312 1347751747.14
2012-09-15 20:29:07-0300 [HTTPChannel,1,169.254.58.130] ========================
========== 1347751747.14 connect to gmail.com:5222 =============================
=====
2012-09-15 20:29:07-0300 [HTTPChannel,1,169.254.58.130] Starting factory <punjab
.session.Session object at 0x00000000034CB780>
2012-09-15 20:29:07-0300 [-] DNSDatagramProtocol starting on 3178
2012-09-15 20:29:07-0300 [-] Starting protocol <twisted.names.dns.DNSDatagramPro
tocol object at 0x00000000034D8978>
2012-09-15 20:29:07-0300 [DNSDatagramProtocol (UDP)] DNSDatagramProtocol startin
g on 3192
2012-09-15 20:29:07-0300 [DNSDatagramProtocol (UDP)] Starting protocol <twisted.
names.dns.DNSDatagramProtocol object at 0x00000000034D8F28>
2012-09-15 20:29:07-0300 [-] (UDP Port 3178 Closed)
2012-09-15 20:29:07-0300 [-] Stopping protocol <twisted.names.dns.DNSDatagramPro
tocol object at 0x00000000034D8978>
2012-09-15 20:29:07-0300 [DNSDatagramProtocol (UDP)] DNSDatagramProtocol startin
g on 10256
2012-09-15 20:29:07-0300 [DNSDatagramProtocol (UDP)] Starting protocol <twisted.
names.dns.DNSDatagramProtocol object at 0x00000000034C8BA8>
2012-09-15 20:29:07-0300 [-] (UDP Port 3192 Closed)
2012-09-15 20:29:07-0300 [-] Stopping protocol <twisted.names.dns.DNSDatagramPro
tocol object at 0x00000000034D8F28>
2012-09-15 20:29:08-0300 [-] (UDP Port 10256 Closed)
2012-09-15 20:29:08-0300 [-] Stopping protocol <twisted.names.dns.DNSDatagramPro
tocol object at 0x00000000034C8BA8>
2012-09-15 20:29:08-0300 [Uninitialized] SID: 67a1b50315d75a1a2723c71a49132a853a
d2b312 => SEND: "<stream:stream xmlns:stream='http://etherx.jabber.org/streams'
xmlns='jabber:client' to='gmail.com' version='1.0'>"
2012-09-15 20:29:08-0300 [XmlStream,client] SID: 67a1b50315d75a1a2723c71a49132a8
53ad2b312 => RECV: '<stream:stream from="gmail.com" id="91779A8A1E299F7A" versio
n="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">'
2012-09-15 20:29:08-0300 [XmlStream,client] SID: 67a1b50315d75a1a2723c71a49132a8
53ad2b312 => RECV: '<stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmp
p-tls"><required/></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl
"><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>X-OAUTH2</mechanism></mechanis
ms></stream:features>'
2012-09-15 20:29:08-0300 [XmlStream,client] Wait until starttls is completed.
2012-09-15 20:29:08-0300 [XmlStream,client] [<twisted.words.protocols.jabber.xml
stream.TLSInitiatingInitializer object at 0x00000000034D8F28>]
2012-09-15 20:29:28-0300 [XmlStream,client] connect ERROR: [Failure instance: Tr
aceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'
>: Connection was closed cleanly.
        ]
2012-09-15 20:29:28-0300 [XmlStream,client] HTTPB Error 200
2012-09-15 20:29:28-0300 [XmlStream,client] HTTPB Return Error: 200 -> <body xml
ns='http://jabber.org/protocol/httpbind' type='terminate' condition='remote-conn
ection-failed'/>
2012-09-15 20:29:28-0300 [XmlStream,client] 169.254.58.130 - - [15/Sep/2012:23:2
9:27 +0000] "POST /http-bind HTTP/1.1" 200 105 "http://isagee.no-ip.org/admin/ch
at.html" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/14
.0.1"
2012-09-15 20:29:28-0300 [XmlStream,client] expire (67a1b50315d75a1a2723c71a4913
2a853ad2b312)
2012-09-15 20:29:28-0300 [XmlStream,client] 0
2012-09-15 20:29:28-0300 [XmlStream,client] SESSION -> We have expired 67a1b5031
5d75a1a2723c71a49132a853ad2b312 1625929482 []
2012-09-15 20:29:28-0300 [XmlStream,client] SID: 67a1b50315d75a1a2723c71a49132a8
53ad2b312 => SEND: '</stream:stream>'
2012-09-15 20:29:28-0300 [XmlStream,client] Stopping factory <punjab.session.Ses
sion object at 0x00000000034CB780>

Christopher Zorn

unread,
Sep 17, 2012, 12:47:56 PM9/17/12
to punja...@googlegroups.com
Can you set your route attribute to route='xmpp://talk.google.com:5222' when creating a session? It may be an issue with the server you are trying to connect to. This doesn't look like an ssl issue. 

--
You received this message because you are subscribed to the Google Groups "Punjab" group.
To view this discussion on the web visit https://groups.google.com/d/msg/punjab-xmpp/-/B7iTRfsMcZUJ.
To post to this group, send email to punja...@googlegroups.com.
To unsubscribe from this group, send email to punjab-xmpp...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/punjab-xmpp?hl=en.

Message has been deleted

Isabel Gabard

unread,
Sep 21, 2012, 7:46:48 PM9/21/12
to punja...@googlegroups.com
Thanks, but when I try with the router, as you say, the error is almost similar:

2012-09-21 20:35:44-0300 [HTTPChannel,2,169.254.58.130] HEADERS 1348270544.74:
2012-09-21 20:35:44-0300 [HTTPChannel,2,169.254.58.130] {'content-length': '242'
, 'accept-language': 'en-us,en;q=0.5', 'accept-encoding': 'gzip, deflate', 'x-fo
rwarded-host': 'isagee.no-ip.org', 'x-forwarded-for': '186.48.198.199', 'host':
 'isabel-pc:5280', 'accept': 'text/html,application/xhtml+xml,application/xml;q=
0.9,*/*;q=0.8', 'user-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Geck
o/20100101 Firefox/14.0.1', 'connection': 'Keep-Alive', 'referer': 'http://isage
e.no-ip.info/admin/chat.html', 'pragma': 'no-cache', 'cache-control': 'no-cache'
, 'x-forwarded-server': 'localhost', 'content-type': 'text/plain; charset=UTF-8'
}
2012-09-21 20:35:44-0300 [HTTPChannel,2,169.254.58.130] HTTPB POST :
2012-09-21 20:35:44-0300 [HTTPChannel,2,169.254.58.130] <body rid='443325926' xm
lns='http://jabber.org/protocol/httpbind' to='gmail.com' xml:lang='en' wait='60'
 hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:x
mpp='urn:xmpp:xbosh' route='xmpp://talk.google.com:5222'/>
2012-09-21 20:35:44-0300 [HTTPChannel,2,169.254.58.130] Session Created : 5a778b
8ecc8a99b11eef287ddaaef8eb3199f5e6 1348270544.89
2012-09-21 20:35:44-0300 [HTTPChannel,2,169.254.58.130] ========================
========== 1348270544.9 connect to talk.google.com:5222========================
==========
2012-09-21 20:35:44-0300 [HTTPChannel,2,169.254.58.130] Starting factory <punjab
.session.Session object at 0x0000000003957B70>
2012-09-21 20:35:45-0300 [Uninitialized] SID: 5a778b8ecc8a99b11eef287ddaaef8eb31
99f5e6 => SEND: "<stream:stream xmlns:stream='http://etherx.jabber.org/streams'
xmlns='jabber:client' to='gmail.com' version='1.0'>"
2012-09-21 20:35:45-0300 [XmlStream,client] SID: 5a778b8ecc8a99b11eef287ddaaef8e
b3199f5e6 => RECV: '<stream:stream from="gmail.com" id="A0B51456B641A85A" versio
n="1.0" xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client">'
2012-09-21 20:35:45-0300 [XmlStream,client] SID: 5a778b8ecc8a99b11eef287ddaaef8e
b3199f5e6 => RECV: '<stream:features><starttls xmlns="urn:ietf:params:xml:ns:xmp
p-tls"><required/></starttls><mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl
"><mechanism>X-GOOGLE-TOKEN</mechanism><mechanism>X-OAUTH2</mechanism></mechanis
ms></stream:features>'
2012-09-21 20:35:45-0300 [XmlStream,client] Wait until starttls is completed.
2012-09-21 20:35:45-0300 [XmlStream,client] [<twisted.words.protocols.jabber.xml
stream.TLSInitiatingInitializer object at 0x0000000003957748>]
2012-09-21 20:36:05-0300 [XmlStream,client] connect ERROR: [Failure instance: Tr
aceback (failure with no frames): <class 'twisted.internet.error.ConnectionDone'
>: Connection was closed cleanly.
        ]
2012-09-21 20:36:05-0300 [XmlStream,client] HTTPB Error 200
2012-09-21 20:36:05-0300 [XmlStream,client] HTTPB Return Error: 200 -> <body xml
ns='http://jabber.org/protocol/httpbind' type='terminate' condition='remote-conn
ection-failed'/>
2012-09-21 20:36:05-0300 [XmlStream,client] 169.254.58.130 - - [21/Sep/2012:23:3
6:04 +0000] "POST /http-bind HTTP/1.1" 200 105 "http://isagee.no-ip.org/admin/c
hat.html" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20100101 Firefox/1
4.0.1"
2012-09-21 20:36:05-0300 [XmlStream,client] expire (5a778b8ecc8a99b11eef287ddaae
f8eb3199f5e6)
2012-09-21 20:36:05-0300 [XmlStream,client] 0
2012-09-21 20:36:05-0300 [XmlStream,client] SESSION -> We have expired 5a778b8ec
c8a99b11eef287ddaaef8eb3199f5e6 443325927 []
2012-09-21 20:36:05-0300 [XmlStream,client] SID: 5a778b8ecc8a99b11eef287ddaaef8e
b3199f5e6 => SEND: '</stream:stream>'
2012-09-21 20:36:05-0300 [XmlStream,client] Stopping factory <punjab.session.Ses
sion object at 0x0000000003957B70>

Other question, does punjab support the <see_other_host> redirection?

Thanks

Isabel Gabard

unread,
Sep 25, 2012, 7:07:23 PM9/25/12
to punja...@googlegroups.com
Well, finally I installed punjab in Ubuntu and the problem solved. So it seams that the problem was related with my windows installation of punjab. Im'fine having it on ubuntu so I will continue this way.

Thanks again.
Reply all
Reply to author
Forward
0 new messages