I am trying to set up push email to my mobile phone (Sony Ericsson P990i). I am using the IMAP4 IDLE feature for this and it is all working well, except for one (very annoying) problem. I am hoping that someone here will be able to help.
I am currently using TLS, but I get the same problem when I use SSL. The problem I have is that each I connect to the IMAP server I get an error stating, “The certificate could not be verified.”
This is understandable as there is no DreamHost certificate on my phone. So I have attempted to add one as follows:
- First I retrieved the certificate in PEM format using the command: openssl s_client -showcerts -connect mail.dreamhost.com:465
- I then saved the output between -----BEGIN CERTIFICATE----- and -----END CERTIFICATE----- inclusively into a file called dreamhost.pem
- Then I converted it to DER format using the command: openssl x509 -inform PEM -outform DER -in dreamhost.pem -out dreamhost.cer
- I copied this onto my phone and loaded it using the certificate manager.
My phone now has a certificated named “*.mail.dreamhost” listed in the CA tab of the certificate manager. The details of the certificate are as follows:
Issued to: *.mail.dreamhost.com
Issued by: New Dream Network Certificate Authority
Valid from: 00:48 12/04/2007
Valid to: 00:48 09/04/2017
Unfortunately, I still get the same error. When I view the certificate details attached to the error message I get the following information:
Issued by: localhost
Valid from: 21:30 24/10/2005
Valid to: 21:30 24/10/2006
So it looks to me like I have retrieved and installed the wrong certificate. Is this the case?
If so, how/where can I get the correct certificate in DER format?
If this isn’t the problem I would be grateful for any other suggestions that will rid me of this very annoying message.