def format_x509_name(x509_name):
    """Formats X509Name object into string representation."""
    name = ""
    for c in x509_name.get_components():
        name += '/'
        name += c[0]
        name += '='
        name += c[1]
    return name