title: HTTPS proxy like Charles
body: <p>I want to implement proxy server in node.js which is somewhat similar to Charles proxy - it should intercept HTTPS requests from my mobile app, decipher them, route some of them depending on body content to original backend and mock others with some static files.</p>
  
  <ol>
  <li>How this HTTPS stuff is handled in Charles or other proxies?</li>
  <li>Will I need self-signed root certificateon mobile device?</li>
  <li>Are there any libraries which will help me?</li>
  </ol>