Hi Fillipo,
In order to tackle the 'certificates' issue, I would suggest to refer to this community thread: https://www.mathworks.com/matlabcentral/answers/1788360-error-using-websave-certificate-rootcerts-pem-expired-missing-or-invalid
Also it seems you are lacking a parameter while calling 'websave(url)', as it should also contain 'filename' parameter saves content from the web service specified by 'filename'.
websave(filename,url)
Please refer to the documentation page: https://www.mathworks.com/help/releases/R2021a/matlab/ref/websave.html
Hope this helps