If you can’t afford a paid certificate, some course providers offer some sort of financial aid. Visit the MOOC provider’s website to find out if you qualify for financial aid.
Coursera Financial Assistance FAQ
EdX Financial Assistance FAQ
For some lists of free certificates and badges from many providers, please see Are these online courses (MOOCs) really free?