The warning is just if you try this with your webserver and access with a regular browser. I wrote that part too short tongue

However I think Google has an answer for sure. (1st shot: http://stackoverflow.com/questions/25125165/certificate-pinning-with-winhttp-api ...whatever winhttp is, it sounds possibly useful)