Once you have completed all the modules and final knowledge check of a course you have to click 'exit the course' in order for the system to recognise that you have completed all the content. Once you have done that you'll be able to click the green button to download your certificate.