Added cert null chec to protocol config