fix for cmake certificate generation