'This will create a certificate html configuration'

def _certificate_html_view_configuration(self, configuration_string, enabled=True):

    config = CertificateHtmlViewConfiguration(enabled=enabled, configuration=configuration_string)
    config.save()
    return config
