The certificate problem has been discussed in Problems building with ESP-IDF latest version (4.3.0) - #4 by maxgerhardt.