I am working on implementing TLS for a Client-Server application. But, the problem is both client and server are in same server: both communicate with just a port number.
So what should the common name (CN) be for agent and server? If I use different name other than the IP of the system, I am get a warning message for "untrusted certificate warning". If I use same CN name, the application is failing.