HTTPS: ignore untrusted certificate?

I’m trying to connect to my server using HTTPS, but I don’t have an actual proper certificate installed. In the browser I can just click “Proceed anyway” and get 128-bit encryption.

But unity gives me no such option, it just returns “SSL: certificate subject name ‘localhost’ does not match the target host name ‘’”

Is there any way to make it ignore this message and just get on with the data?
Or do I have to get a proper certificate to make this work?

I needed the same thing. In case someone still need it, here is the answer:

 IEnumerator Start () 
	ServicePointManager.ServerCertificateValidationCallback = TrustCertificate;
	HttpWebRequest request = (HttpWebRequest) WebRequest.Create( "" );
	HttpWebResponse response = (HttpWebResponse) request.GetResponse();
	Stream dataStream = response.GetResponseStream ();
	StreamReader reader = new StreamReader (dataStream);
	string responseFromServer = reader.ReadToEnd ();
	Debug.Log ("responseFromServer=" + responseFromServer );
	yield return 0;

private static bool TrustCertificate(object sender, X509Certificate x509Certificate, X509Chain x509Chain, SslPolicyErrors sslPolicyErrors)
	// all Certificates are accepted
	return true;