Whenever this code runs, I get a \'No Peer Certificate\' error.
SSL certificate is valid, bought from Namecheap (PositiveSSL). It has the CA crt before it, and opens
Make sure you are using HttpsURLConnection instead of HttpURLConnection.
HttpsURLConnection
HttpURLConnection