According to the law (Art. 330a OR), the employer is bound to provide the employee with a work certificate at any time. Furthermore, the certificate may be issued during the employment relationship in the form of an interim certificate or as a final certificate at the end of the employment.
You can find more information on the subject and a template for a letter of termination in our blog «Work certificate»