def create_arn_from_cert(account_number, partition, certificate_name, path=''):
    """
    Create an ARN from a certificate.
    :param path:
    :param account_number:
    :param partition:
    :param certificate_name:
    :return:
    """
    if path is None or path == '':
        return f"arn:{partition}:iam::{account_number}:server-certificate/{certificate_name}"
    else:
        return f"arn:{partition}:iam::{account_number}:server-certificate/{path}/{certificate_name}"

    Create an ARN from a certificate.
    :param path:
    :param account_number:
    :param partition:
    :param certificate_name:
    :return:
    
lemur/plugins/lemur_aws/iam.py