PositiveSSL not working with Android?

Namecheap currently offers one of the most affordable ways to get a (not self-signed) SSL cert to use with your web-/mailserver – the only drawback being, that it isn’t signed by a CA Root, but through some subsidiaries, which means you’ll also have to install a supplied CA bundle on the server or else you’ll get a bunch of SSL errors.

With dovecot as POP/IMAP server, that’s actually quite easy – just put all the certs in single file, starting with your servers cert and followed by the three certs supplied by Namecheap/Comodo.

This should work fine with most mail clients, like Thunderbird or Evolution. The cert also worked with Apache for HTTPS. But for some reason, it didn’t work with my Android mail app.

Turns out, Android can be quite picky about the order of the cert chain…

#~$ echo|openssl s_client -connect yourserver.tld:993
CONNECTED(00000003)
depth=3 /C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust External CA Root
---
Certificate chain
 0 s:/OU=Domain Control Validated/OU=PositiveSSL/CN=yourserver.tld
   i:/C=GB/ST=Greater Manchester/L=Salford/O=Comodo CA Limited/CN=PositiveSSL CA
 1 s:/C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust External CA Root
   i:/C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust External CA Root
 2 s:/C=GB/ST=Greater Manchester/L=Salford/O=Comodo CA Limited/CN=PositiveSSL CA
   i:/C=US/ST=UT/L=Salt Lake City/O=The USERTRUST Network/OU=http://www.usertrust.com/CN=UTN-USERFirst-Hardware
 3 s:/C=US/ST=UT/L=Salt Lake City/O=The USERTRUST Network/OU=http://www.usertrust.com/CN=UTN-USERFirst-Hardware
   i:/C=SE/O=AddTrust AB/OU=AddTrust External TTP Network/CN=AddTrust External CA Root

If the certs are in any other order, Android threw an error. So your cert file should contain (again: in that order):

  1. Your Cert as supplied by Namecheap/Comodo/…
  2. PositiveSSLCA.crt
  3. UTNAddTrustServerCA.crt
  4. AddTrustExternalCARoot.crt

So you think know how to ride a bike…

Unless you can do it like this guy, you don’t…

[youtube http://www.youtube.com/watch?v=ShbC5yVqOdI]

Industrial Revolutions is the amazing new film from street trials riding star Danny Macaskill. Filmed and edited for Channel 4 ‘s documentary Concrete Circus.

Industrial Revolutions sees Danny take his incredible bike skills into an industrial train yard and some derelict buildings.’ Filmed in the beautiful Scottish countryside Danny Macaskill’s latest film was directed by Stu Thomson (Cut Media/MTBcut) for Channel 4’s documentary Concrete Circus.

www.CutMedia.com
www.DannyMacaskill.com

Music is ‘The Wolves’ by Ben Howard courtesy of Universal Island Records

Land of the free, home of the brave

[youtube http://www.youtube.com/watch?v=laUrOCved7I]

In related news, it almost looks like John Steward is about to start backing Ron Paul:
(you can skip Pt. 1 and not miss anything relevant, Pt. 2 and 3 are worth watching though)

 

The Daily Show With Jon Stewart Mon – Thurs 11p / 10c
Exclusive – Ron Paul Extended Interview Pt. 1
www.thedailyshow.com
Daily Show Full Episodes Political Humor & Satire Blog The Daily Show on Facebook

Part 2

The Daily Show With Jon Stewart Mon – Thurs 11p / 10c
Exclusive – Ron Paul Extended Interview Pt. 2
www.thedailyshow.com
Daily Show Full Episodes Political Humor & Satire Blog The Daily Show on Facebook

And Part 3

The Daily Show With Jon Stewart Mon – Thurs 11p / 10c
Exclusive – Ron Paul Extended Interview Pt. 3
www.thedailyshow.com
Daily Show Full Episodes Political Humor & Satire Blog The Daily Show on Facebook