'Ensure the certificate data contains all of the necessary fields and the values match our rules'

@staticmethod
def validate(certificate_data):

    if (certificate_data.get('version') != CERTIFICATE_SCHEMA_VERSION):
        raise TypeError('Unsupported    certificate    schema    version:    {0}.        Expected    version:    {1}.'.format(certificate_data.get('version'), CERTIFICATE_SCHEMA_VERSION))
    if (not certificate_data.get('name')):
        raise CertificateValidationError(_('must    have    name    of    the    certificate'))
