title: XMLHttpRequest to a HTTPS URL with a self-signed certificate
body: <p>How to do a Javascript XMLHttpRequest to a https:// URL using a self-signed certificate, that is known by the client to be legit?</p>
  
  <p>My attempts fire the error event of XMLHttpRequest.</p>