This question already has an answer here:
We made a site which will be used only in local (is not publicity available). It supports https with self signed cert and key. Now, if I use the site - it says 'your connection to this site is not secure'. I know we need to buy certification from trusted CA. As site will be used only locally, is there any way to bypass this?