Fix server certificate verification failed issue

http://stackoverflow.com/questions/21181231/server-certificate-verification-failed-cafile-etc-ssl-certs-ca-certificates-c
http://ubuntuforums.org/showthread.php?t=1865952

Change-Id: Iab54f4722a5da920f9ec66d0cdf8b495c98f23b2
Merge "Fix server certificate verification failed issue"