Webrequest Shows Error for Invalid https certificate

 
Is there a way to allow webrequest to work even with invalid certificate? The reason is I generated the certificate on my own, and upon visiting the website my browser will show a warning saying certificate is not valid. I believe this is why webrequest don't work as well?
 
vicknick: Is there a way to allow webrequest to work even with invalid certificate? The reason is I generated the certificate on my own, and upon visiting the website my browser will show a warning saying certificate is not valid. I believe this is why webrequest don't work as well?

WebRequest is very simplified function. You don't have much leeway in that respect.

If it is your own website, and even if it is a self-signed certificate, you can still generate a proper valid certificate.