Not sure if this will work for you.
We use Audiences to automatically assign learners into Certifications. Create an Audience with the criteria of course completion and then create your certification enrolment as that Audience so the learner completes the course the first time and gets put into the Audience. And by being in the Audience they are enrolled in the Certification