Server Linux SSL Expired

hi, the certificate has expired and we are unable to get it renewed. They told me to disable the lines that refer to the Firewall in the upgrade script. But I can’t find them. Now if I try to do any update I get this message

authentication error: {‘info’: ‘error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed (certificate has expired)’, ‘desc’: ‘Connect error’}.
I followed the guide as described below, but the certificates are not renewed

Mastodon