def METHOD_NAME(self, cert, filename, repository_name):
    """
    get_data_from_certs takes certificate and proceed
    specific data into proper fields
    Args:
        cert - certificate
        filename - name of certificate file
    Examples:
        name=(from file name) wildcard_mysite.com,
        domain_ssl=(main domain name) mysite.com,
        certificate_type= OV,
        san=['www.mysite.com'],
        date_to=(Valid From) July 11, 2018,
        date_from=(Valid to) March 26, 2021,
        issued_by=(Issuer name) CA Company:
    """
    san = ''
    extension = None
    try:
        extension = cert.extensions.get_extension_for_oid(
            ExtensionOID.SUBJECT_ALTERNATIVE_NAME
        )
    except ExtensionNotFound:
        pass
    if extension and extension.value:
        san = extension.value.get_values_for_type(x509.DNSName)
    issuer = cert.issuer.get_attributes_for_oid(
        NameOID.ORGANIZATION_NAME
    )
    domain = extract_domain_from_filename(filename)
    issuer_name = DEFAULT_ISSUER_NAME
    if issuer and issuer[0].value:
        issuer_name = issuer[0].value
    domain_ssl = get_domain_ssl(cert)
    ssl_type = get_ssl_type(issuer_name, san, filename)
    manufacturer, _ = Manufacturer.objects.get_or_create(
        name=issuer_name
    )
    SSLCertificate.objects.get_or_create(
        name=domain,
        domain_ssl=domain_ssl,
        certificate_type=ssl_type,
        san=san,
        date_to=cert.not_valid_after,
        date_from=cert.not_valid_before,
        issued_by=manufacturer,
        certificate_repository=repository_name
    )