Added a check for the cert parameter in the config. Useful for internal API's that use PKI certificates.