Added namedtuples for key, csr in client