Question on the SAN list of a certificate please.
Currently, I have a web application where mTLS, mutual TLS, two way SSL is enabled.
All my clients have the valid sets of certificates and they all pass the handshakes and are able to get the response payload when invoking my service over the web. They are all very happy.
However, as the developer, I am not able to get into my own service if mTLS is active, when running on localhost.
Hence, my immediate reaction was to ask my security team to add localhost in the SAN list.
However, they told me this is not secure and considered as bad practice to add localhost.
I tried to look at documentations online, without finding anything concrete, or that I can understand.
I do not want to disable mTLS for my local host testing. I do not want to cheat the process in anyway by deploying some sort of insecure trust.
My questions:
- Why adding localhost as entry in the SAN list is considered bad practice and unsafe?
- How can I test the app deployed on my localhost then?
Thank you