Connection is not secure on Localhost
I think I have found the answer to this on page
https://improveandrepeat.com/2016/09/allowing-self-signed-certificates-on-localhost-with-chrome-and-firefox/
I dont know what to do about IE although I do not use this with localhost