[Bug 302314] Re: Pidgin not using existing root TLS/SSL certificates for validation

2010-05-17 Thread Brian Candler
The problem definitely remains.

This morning, pidgin under Hardy started giving me the 'invalid
certificate' error for login.live.com, asking me blindly whether or not
to accept the new certificate. It showed me nothing more than the
fingerprint and start/end times to make that choice.

Coincidentally, update manager showed me an update to pidgin, but even
after update the error persisted. I now have:

ii  libpurple0 1:2.7.0-0ubuntu1.1~pidgin1.08.04 
  multi-protocol instant messaging library
ii  pidgin 1:2.7.0-0ubuntu1.1~pidgin1.08.04 
  graphical multi-protocol instant messaging client for X
ii  pidgin-data1:2.7.0-0ubuntu1.1~pidgin1.08.04 
  multi-protocol instant messaging client - data files
ii  pidgin-otr 3.1.0-1  
  Off-the-Record Messaging plugin for pidgin

The error also continued after deleting the existing login.live.com
certificate from within pidgin.

I initially rejected the certificate, on the basis that there might be
an upstream device intercepting, logging and/or modifying the traffic.

However I was able to verify the certificate manually like this:

(1) openssl s_client -CApath /etc/ssl -connect login.live.com:443

This showed that the certificate is indeed valid and signed by a trusted
CA (verify return code 0 = OK)

(2) Copy-paste the PEM certificate shown from step 1 into a new file
(ll.cert)

(3) Take the fingerprint of that certificate:

openssl x509 -in ll.cert -noout -fingerprint
 SHA1 Fingerprint=C9:F2:FD:50:A2:0C:AB:4A:45:22:F9:23:E1:91:04:9E:01:F0:64:48

(4) This value matches the value shown by pidgin, so I was able to
accept it safely

It's pretty ridiculous that an end-user has to go to such extremes to
ensure the security of their comms, when all the machinery and the trust
root needed to validate it is already present within Ubuntu.

-- 
Pidgin not using existing root TLS/SSL certificates for validation
https://bugs.launchpad.net/bugs/302314
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 302314] Re: Pidgin not using existing root TLS/SSL certificates for validation

2009-07-15 Thread Gustav Svensson
tobiasly wrote:
So, for those that are also having this problem, do you have 2 different 
Gmail/Google Apps accounts as well?

Yes. I guess that is what is causing the problem. Bryan C's workaround
fixes the problem for me as well.

-- 
Pidgin not using existing root TLS/SSL certificates for validation
https://bugs.launchpad.net/bugs/302314
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 302314] Re: Pidgin not using existing root TLS/SSL certificates for validation

2009-04-09 Thread Sebastien Bacher
** Changed in: pidgin (Ubuntu)
   Importance: Undecided = Low

-- 
Pidgin not using existing root TLS/SSL certificates for validation
https://bugs.launchpad.net/bugs/302314
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 302314] Re: Pidgin not using existing root TLS/SSL certificates for validation

2008-12-18 Thread tobiasly
I would like to add another data point to this issue. I was having the
same issue as Bernard_Ivo in that I kept getting asked whether to accept
the talk.google.com certificate each time I started pidging. I have a
talk.gmail.com certificate in ~/.purple/certificates/x509/tls_peers
already so I didn't understand why I was getting the error. Creating the
etc symlink in my home directory didn't resolve the issue.

Then I deleted talk.gmail.com cert and restarted Pidgin. It then asked
me *twice* about the Gmail cert! Then I realized: I have two Gmail talk
accounts (one Gmail, the other Google Apps). I disabled one of the two,
restarted Pidgin, and got to warning. I closed and restarted again to
verify that I still got no warning.

So then I re-enabled both accounts, deleted talk.google.com cert and
restarted. I verified that the two talk.google.com certificates were
*different*. One came from gmail.com and one came from talk.google.com.
So the root problem here seems to be that the connection server is being
redirected based on whether you're using Google Apps or Gmail, and
Pidgin stores the cert based on the name of the initial server, not the
one that is actually performing SSL.

So, for those that are also having this problem, do you have 2 different
Gmail/Google Apps accounts as well?

As an aside, following Bryan C's fix (comment #1 from 2008-11-26) fixed
this problem. These accounts were both originally connecting to port
5223; I switched to force SSL connection to port 443 for both of them
and no longer get a warning for either one.

-- 
Pidgin not using existing root TLS/SSL certificates for validation
https://bugs.launchpad.net/bugs/302314
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 302314] Re: Pidgin not using existing root TLS/SSL certificates for validation

2008-12-08 Thread Bernard_Ivo
Hi, I can confirm I have the same problem connecting to Gtalk for a week
already.

Common name: gmail.com
Fingerprint (SHA1): 9f:f8:3b:da:2c:a3:12:55:24:d5:b9:d6:fc:49:69:8f:0a:91:d8:cd
Activation date: Wed Apr 11 20:17:38 2007
Expiration date: Tue Apr 10 20:17:38 2012

Somehow it takes too long to release a fix, will probably try the
workaround.

Cheers

-- 
Pidgin not using existing root TLS/SSL certificates for validation
https://bugs.launchpad.net/bugs/302314
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 302314] Re: Pidgin not using existing root TLS/SSL certificates for validation

2008-11-30 Thread Barak Naveh
Hey Bryan, thanks for the workaround.

-- 
Pidgin not using existing root TLS/SSL certificates for validation
https://bugs.launchpad.net/bugs/302314
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 302314] Re: Pidgin not using existing root TLS/SSL certificates for validation

2008-11-27 Thread Barak Naveh
any workaround for the certificate of login.live.com ?
is it safe to accept it?

-- 
Pidgin not using existing root TLS/SSL certificates for validation
https://bugs.launchpad.net/bugs/302314
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 302314] Re: Pidgin not using existing root TLS/SSL certificates for validation

2008-11-27 Thread Bryan C
If Pidgin doesn't know whether the certificate is valid or not, you
could be vulnerable to a man-in-the-middle attack by blindly accepting
it (at least that's my understanding). Mind you, accepting it yourself
without any other knowledge would be no worse than what Pidgin was doing
before version 1:2.4.1-1ubuntu2.2 was released (it was blindly accepting
all certificates without asking - see bug 251304), but personally I'd
rather not take that approach.

I have found a simple workaround for login.live.com, that should be safe
(as long as you trust the root certificates that Firefox uses).

First, navigate Firefox to https://login.live.com/. 
For me, at least, Firefox accepts the certificate as being verified by 
VeriSign; you should bail out here if Firefox complains about an invalid 
certificate.
View the page's certificate (right-click the page, select View Page Info, 
click the security icon, and click the View Certificate button).
On the Details tab, click the Export... button.

As of this point, I'm working from memory (don't have access to my home machine 
at the moment), so hopefully I get the details right.
You'll want to save the certificate with a file name of login.live.com as 
type X.509 Certificate (PEM) (at the very least, I remember that the default 
type worked for me) in ~/.purple/ssl/certs. You might need to right-click in 
the file list and show hidden files to see the .purple directory in your home 
directory. I'm not sure about the exact path; it might have been 
~/.purple/ssl/ca-certs instead. In any case, the directory should exist if 
you've started Pidgin before; you just need to drop in the certificate with a 
filename of the host it belongs to (no extra .pem extensions or anything like 
that).

Once you've done all that, restart Pidgin and it should accept
login.live.com. You may need to disable and re-enable your MSN account
(in Accounts-Manage Accounts) if Pidgin doesn't bother trying to
connect because it was previously deemed invalid.

I'm sure you could use other tools, or browsers instead of Firefox, to
export the certificate... but this approach worked for me. I hope this
is helpful until an official fix is released.

-- 
Pidgin not using existing root TLS/SSL certificates for validation
https://bugs.launchpad.net/bugs/302314
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 302314] Re: Pidgin not using existing root TLS/SSL certificates for validation

2008-11-27 Thread komputes
I can confirm having an issue with an MSN account. Pidgin is asking me
if I will Accept certificate from rsi.hotmail.com This all started at
the begining of the week and happens from multiple different internet
connections.

-- 
Pidgin not using existing root TLS/SSL certificates for validation
https://bugs.launchpad.net/bugs/302314
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 302314] Re: Pidgin not using existing root TLS/SSL certificates for validation

2008-11-27 Thread Bryan C
To correct my previous comment 
(https://bugs.launchpad.net/ubuntu/+source/pidgin/+bug/302314/comments/3), the 
path to place the login.live.com certificate (or any other certificate you want 
Pidgin to accept per-user) is 
~/.purple/certificates/x509/tls_peers/

Sorry for the confusion. I was thinking of /etc/ssl/certs instead. You
probably don't want to just dump certificates in there.

To emphasize, making symlinks in your home directory or dumping trusted
certificates in ~/.purple are just crude short-term workarounds to avoid
accepting untrusted certificates because of a bug. They aren't long-term
solutions.

komputes: I haven't had any issues with rsi.hotmail.com, though
according to http://developer.pidgin.im/ticket/6680 you might have
offline messages that aren't getting through. Apparently MSN uses a
different host and a different certificate for offline messages. Until
an official fix for Ubuntu is released you could perform the Firefox
workaround I suggested above for login.live.com with rsi.hotmail.com, or
you could find another way to verify the certificate (there are some
instructions on using openssl and a certificate in the Pidgin ticket; it
appears to be out of date though), or you could just accept the
certificate if you're feeling lucky (though I wouldn't recommend it).

-- 
Pidgin not using existing root TLS/SSL certificates for validation
https://bugs.launchpad.net/bugs/302314
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 302314] Re: Pidgin not using existing root TLS/SSL certificates for validation

2008-11-26 Thread Bryan C
As an aside, if someone else who is affected by this bug attempts the
workaround I provided in the bug description to connect to Google Talk,
and Pidgin warns that the certificate presented by 'talk.google.com'
claims to be from 'gmail.com' instead, you might be connecting to
incorrect (obsolete?) ports. Go to Accounts-Manage, select your Google
Talk account and click Modify, and on the Advanced tab, and try the
following settings (they worked for me):

Check Require SSL/TLS
Check Force old (port 5223) SSL
Uncheck Allow plaintext auth over unencrypted streams
Uncheck Use GSSAPI (Kerberos v5) for authentication

Set the Connect port to 443
Set the Connect server to talk.google.com

I suppose this comment doesn't relate to this bug other than that I ran
into the problem described in this comment while trying to work around
the problem described by this bug. I hope it helps someone else. Sorry
if this is the wrong place to post such a comment.

-- 
Pidgin not using existing root TLS/SSL certificates for validation
https://bugs.launchpad.net/bugs/302314
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 302314] Re: Pidgin not using existing root TLS/SSL certificates for validation

2008-11-26 Thread bugmenot
** Bug watch added: Pidgin Trac #7002
   http://developer.pidgin.im/ticket/7002

** Also affects: pidgin via
   http://developer.pidgin.im/ticket/7002
   Importance: Unknown
   Status: Unknown

-- 
Pidgin not using existing root TLS/SSL certificates for validation
https://bugs.launchpad.net/bugs/302314
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 302314] Re: Pidgin not using existing root TLS/SSL certificates for validation

2008-11-26 Thread Bug Watch Updater
** Changed in: pidgin
   Status: Unknown = Fix Released

-- 
Pidgin not using existing root TLS/SSL certificates for validation
https://bugs.launchpad.net/bugs/302314
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs