def METHOD_NAME(certificate):
    """
    Returns the SHA1 sum of a ASN1/PEM certificate
    :param name: ASN1/PEM certificate
    CLI Example:
    .. code-block:: bash
        salt '*' keystore.get_sha1 "(certificate_content_string)"
    """
    public_cert = _get_cert(certificate)
    return public_cert.digest("SHA1")