[Solved] XMPP IM account produces certificate error.

Support topics for the mail/news/chat client
pizzaazzip

[Solved] XMPP IM account produces certificate error.

Post by pizzaazzip » 2015-08-18, 05:48

My employer hosts a XMPP server where I can chat with the employees I work with. Typically we use Adium (for mac) or Pidgin (for everything else) but because Fossamail is pretty cool and I have it setup to work with Google Talk & Facebook, it would be nice to add my work account. When I add this work account on Pidgin and I set the settings correctly, a certificate notification pops up and I hit something on the lines of I agree and I'm able to use it fully. This does not pop up in Fossamail so I'm not sure if I did something wrong or somehow it is not supported. The error message Fossamail throws is Error: Issuer certificate is invalid. The settings for Pidgin to work are:

im.nameofdomain.com
Connection security: Require encryption
allow plaintext auth over unencrypted streams is unchecked
Connect port 5222
Use global proxy settings

In Fossamail, I have tried to set the username as username & username@im.nameofdomain.com. It appears just username won't work. The settings I've tried for the full username are:
Auto-joined channels: Blank
Resource: Blank
Priority: 0
Connection Security: I've tried all three
Port: 5222

Anyone have any ideas?
Last edited by Moonchild on 2015-08-19, 08:50, edited 1 time in total.
Reason: Marked Solved

User avatar
Moonchild
Project founder
Project founder
Posts: 39285
Joined: 2011-08-28, 17:27
Location: Sweden

Re: XMPP IM account produces certificate error.

Post by Moonchild » 2015-08-18, 06:21

Your work has to make sure the certificate is valid -- self-signed should also be perfectly fine, but if it's CA-signed and the signature or issuer is invalid, then FossaMail will refuse the invalid SSL connection because it hard-fails the authentication part of encryption.
"Praise from a narcissistic person is always a poison dart. They don't share the stage, so discernment matters." - Dr. Ramani
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

pizzaazzip

Re: XMPP IM account produces certificate error.

Post by pizzaazzip » 2015-08-18, 19:25

Ok, so I double checked Pidgin and if I view the certificate, it says:

Common name: tftp.nameofdomain.com
Issued By: (self-signed)

Fingerprint (SHA1): stuff
Activation date: Some time in 2013
Expiration date: some time in 2018

The previous page says:

The certificate for im.nameofdomain.com could not be validated.
The certificate claims to be from "tftp.nameofdomain.com" instead. This could mean that you are not connecting to the service you believe you are.
The certificate is self-signed and cannot be automatically checked.

Is this not working in FossaMail because the common name is not im.nameofdomain.com and instead is tftp.nameofdomain.com?

I should also mention MirandaIM also works with this account.

User avatar
Moonchild
Project founder
Project founder
Posts: 39285
Joined: 2011-08-28, 17:27
Location: Sweden

Re: XMPP IM account produces certificate error.

Post by Moonchild » 2015-08-18, 22:52

The common name or any alt names must match the name of the domain used. Otherwise the certificate is invalid for the host used and FossaMail will (rightfully) refuse the connection.
Once again:
Moonchild wrote:Your work has to make sure the certificate is valid
That means:
  • Valid for the domain/host it's used for
  • Valid signature (self-signed is OK)
  • Potentially, for XMPP use, it may need the XMPP extension
The fact that it works in other clients will just mean that those clients don't care about the validity of the certificate, and only care that it is "in some way encrypted".
"Praise from a narcissistic person is always a poison dart. They don't share the stage, so discernment matters." - Dr. Ramani
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

pizzaazzip

Re: XMPP IM account produces certificate error.

Post by pizzaazzip » 2015-08-19, 03:41

Thanks for all of your help and clarification. I'll see if I can get them to change it. How can I mark this post as solved? If I have any additional issues, I imagine I can just open a new one.

User avatar
Moonchild
Project founder
Project founder
Posts: 39285
Joined: 2011-08-28, 17:27
Location: Sweden

Re: XMPP IM account produces certificate error.

Post by Moonchild » 2015-08-19, 08:50

Normally you just edit the topic of the first post to add [Solved] to the topic title at the start.
"Praise from a narcissistic person is always a poison dart. They don't share the stage, so discernment matters." - Dr. Ramani
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

pizzaazzip

Re: [Solved] XMPP IM account produces certificate error.

Post by pizzaazzip » 2015-08-19, 14:06

Gotcha thanks again.