"Error: Not trusted server certificate" using Android sample code

  • Last Post 25 September 2013
hades200721 posted this 09 September 2013

under the class "Client" under function "public void downloadResult(Task task, FileOutputStream out) throws Exception"

in final step

BufferedInputStream reader = new BufferedInputStream( connection.getInputStream());

keep getting an error when trying to get input from the URL.

Anastasia Galimova posted this 25 September 2013

This error message occurs because one of the root certificates is not installed on your device. So the device cannot accept the Azure Blob Storage certificate.

You can find the solutions here: http://stackoverflow.com/questions/2642777/trusting-all-certificates-using-httpclient-over-https/6378872#6378872