Fixes certificate error