Step 1 - Go to the course page for your relevant course
Step 2 - Scroll to the very bottom of the page, where you will see the 'Certificate of Completion" block.
Step 3 - Click on 'Click here to reset your completion'
This will remove your completion record and previous results, allowing you to generate a new certificate after completing the assessment again.