Fix ssl certificate generation