nagios_common: Move check_cert into module

Change-Id: I211555408a6da02653be0ceb14aee2a4a2563280