How to add a self singed certificate as exception for https://localhost:x
I have a localhost web service and i enable HTTPS protocol, which runs at different port for every restart. I created a self signed certificate with openssl and put the certificate "trusted root certificate authorities" work correct with Microsoft Edge, Internet explorer and google chrome. But at Firefox when I import certificate at authorities not accept and it ask to add as exception. After adding to the exception it is working. But whenever the system gets restarted, the port will get changed. Once the port is changed Firefox again asks to add exception for that particular port also. Guide me to get a solution that if the self-signed certificate is added as exception all Firefox should work even if the website port get changed.