server/client: Added warning for self signed or invalid certificates