def public_key_list(request):
    public_keys = find_public_keys(request)
    ks = public_keys.keys()
    ks.sort()
    out = StringIO()
    for i in range(len(ks)):
        out.write("%s=%s\n"%(i, ks[i]))
    out.flush()
    toRet = out.getvalue()
    out.close()
    return toRet
def public_key(request):
    public_keys = find_public_keys(request)
    ks = public_keys.keys()
    ks.sort()
    return public_keys[ks[int(request.key_number)]]
def public_keys(request):
    return find_public_keys(request)