Accessing mail.google.com:443
801313Nov 3 2010 — edited Nov 18 2010Hi all
Long story short: I am trying to connect to google mail over https and SSLSocket. When I try to connect using the default SSLSocketFactory, I get a 405 bad method http return code. So I built my own key and cert, used it to create an SSLContext, and gave it another shot. From that I got an exception in handshake: sun.security.validator.ValidatorException: No trusted certificate found. (Just for the record, I'm sort of having a giggle over no trusted certificate - google doesn't trust me??? No love!)
Blockage on this problem seems to indicate that I need an approved cert, like the ones that can be acquired from thwate and verisign (are there any other vendors?) I'm not sure getting one of these certs fits in my budget... You can only imagine my budget :)
So my question really comes down to: Is there a free or cheap way to make SSL connections to google mail and other urls that I have overlooked? Is it possible to tweak the default SSLSocketFactory to use a protocol that works with google mail and https in general?
----
(foot in my mouth)
I can open mail.google.com:443 and mail.google.com/mail just from a URL, so clearly I've screwed something up. If you have any suggestions as to what that could be, I'm all ears. Otherwise, I think I need to do some more tests
Edited by: tjacobs01 on Nov 3, 2010 10:38 AM