Re: testing jabberd2 TLS with openssl s_client

2015-05-09 Thread Karim Malhas
I wouldn't say it's a bug. You didn't show us the complete configuration file, 
but I am assuming
you did not configure jabberd2 to also serve xmpp.guuk.eu, so when you try to 
connect to xmpp.guuk.eu
jabberd2 doesn't know that it should also serve users for x...@xmpp.guuk.eu. If 
you need that you can
just configure a second session manager.

There is an issue with openssl that you ran into, that might have helped you to 
find this out yourself.
It's that when you connect  like this

openssl s_client -starttls -connect example.com:5222

when there is a server running at example.com:5222, but it's not configured to 
serve example.com
then openssl doesn't show you that error message, but it just prints 

 CONNECTED(0003)

(and get's stuck in an endless loop ...)

Which is not entirely incorrect, after all it established a connection, but the 
starttls part failed, 
and it doesn't print an error message.

So you _can_ in fact use user @ domainname.tld ! You can just not debug it with 
openssl :-)

Yaxim works, because it's smarter that openssl. It connects to xmpp.guuk.eu, 
but it sends the correct
hostname guuk.eu in it's pre-starttls connection data

stream to='guuk.eu' version='1.0' 

openssl doesn't know that you want to connect as u...@guuk.de, the only 
information it has is the host
xmpp.guuk.de so it sends that instead.

stream to='xmpp.guuk.eu' version='1.0' 

for which your server is not configured, it responds with  host-unknown, which 
openssl doesn't show you.
So the bug is in fact in openssl: 
http://rt.openssl.org/Ticket/Display.html?id=2860user=guestpass=guest

If you want to use u...@guuk.de instead of u...@xmpp.guuk.de just configure it, 
and if it works in yaxim
it will probably work in all other clients.


Karim

 
 i found the error by myself. IMHO this is a bug within jabberd2 not 
 responding to openssl s_client calls while using the FQDN instead of the 
 domain part of the JID. especially because some xmpp clients give you the 
 ability to connect to another host instead of your domain part of your JID.
 
 
 while using the FQDN of my host i am not getting a response from openssl 
 s_client:
 
 root@cargo:/etc/jabberd2 2015/05/10 03:21:31 # openssl s_client -CApath 
 /etc/ssl/certs -starttls xmpp -connect xmpp.guuk.eu:5222
 CONNECTED(0003)
 ^C
 
 using the domain part of the JID is giving me a response:
 
 root@cargo:/etc/jabberd2 2015/05/10 03:22:59 # openssl s_client -CApath 
 /etc/ssl/certs -starttls xmpp -connect guuk.eu:5222   
 CONNECTED(0003)
 depth=2 C = IL, O = StartCom Ltd., OU = Secure Digital Certificate Signing, 
 CN = StartCom Certification Authority
 verify return:1
 depth=1 C = IL, O = StartCom Ltd., OU = Secure Digital Certificate Signing, 
 CN = StartCom Class 2 Primary Intermediate Server CA
 verify return:1
 depth=0 C = DE, ST = Hessen, L = Wiesbaden, O = G\C3\BCnther K\C3\BCnzel, CN 
 = xmpp.guuk.eu, emailAddress = p... @guuk.eu
 verify return:1
 ---
 Certificate chain
  0 s:/C=DE/ST=Hessen/L=Wiesbaden/O=G\xFCnther 
 K\xFCnzel/CN=xmpp.guuk.eu/emailAddress=p... @guuk.eu
i:/C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom 
 Class 2 Primary Intermediate Server CA   
  1 s:/C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom 
 Class 2 Primary Intermediate Server CA   
i:/C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom 
 Certification Authority  
  2 s:/C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom 
 Certification Authority  
i:/C=IL/O=StartCom Ltd./OU=Secure Digital Certificate Signing/CN=StartCom 
 Certification Authority  
 ---   
 
 Server certificate 
 
 the certification chain is only working, because my certificate is signed for 
 both, xmpp.guuk.eu and guuk.eu.
 
 not sure how to proceed with that, but it looks like it was a nice try to use 
 username @ domainname.tld for JIDs. it's just not working. looks like i have 
 to use username @ hostname.domainname.tld ...
 
 greetings
 -mog
 
 
 

-- 



pgpGiY9Yet9T4.pgp
Description: PGP signature


Re: [jabberd2] gsals error

2009-01-16 Thread Karim Malhas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512



Sebastian Żurek wrote:

 And I'm confused, because I have gsasl (= 0.2.27) working:
 
 [seb...@web63 jabberd-2.2-20090116]$ gsasl --version
 gsasl 0.2.9
 [seb...@web63 jabberd-2.2-20090116]$
 
 Could You please give some explanation or help?

I ran into the same problem today

You have to look at part after the last dot as an integer:

0.2.27 is a later version than 0.2.9
or in words:

zero dot two dot twentyseven is newer than zero dot two dot nine.

HTH,
Karim








-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iQIcBAEBCgAGBQJJcVwrAAoJEKX6AibVDljRsGgQAKvM8RNTqmj76Xv6HCoJ1kXN
ThBZ2ON/+tPJmjo5AcBHXlKL088RLNweUvZZJSPZy9mesnYibDn6Zdb0phUDDvRp
cR2qtr42Q8lkGyQzEv6iafZRmcutQPjl0zLGqgAtrcyMMIxwjX2IprYPYK3v3GtB
eN/hxPFfHg5joyoCJ/SCpmhDalTU4uUHdZMA2kjNMVPK8dCFQLl8Ks11IlMJcZYY
PvzFT9kT0+i+/2f7uPB6cYtDduFIwCFKa2Jp0iRDsgfi2Vpnu6hoCZ8vhFYQD6qL
wQHsq0b2OBqhREG6Nn9WuoGk9gJ6w6G5ultcG80YMP9v3n2+BmOE+8dSFXQc5+ql
/iedvKQOn2PDodR3cJmJtSzGcqU7avpOvT1mSwfe8lxgKrVj20g3XtnYYwkAB5Ig
e5/CA6y6axjFhQ/c5Dmn6dCtuPuq7U3SlnkBVYPClJjN92e4Zg0d3YVFoRQpYc7g
EAG+Cy58f4oWYdVENiNt7YPIK/XXfYPSblN4x02hfn5M6v/Nkmn6E/cv+meke2HN
mSrVlPtnX7+/FlqhScGbzcEr+EdYL37e4V9U0/KLahLb7ZrFW9iOrtmQKidZ6hRH
WkEw4CjN5L9ES6ENOCkDvMMJ9PflADdxpT9629URjg6bPP1r+PYV/sjJEVVXEfpX
7ZL5v31VSnf3pkpDXYpG
=eBuU
-END PGP SIGNATURE-

--
To unsubscribe send a mail to jabberd2+unsubscr...@lists.xiaoka.com