Motivated by recent experiments with proximitized nanowires, we study a mesoscopic s-wave superconductor connected via point contacts to normal-state leads. We demonstrate that at energies below the charging energy the system is described by the two-channel Kondo model, which can be brought to the quantum critical regime by varying the gate potential and conductances of the contacts.