Problem trying to sync repository self signed certificate in certificate chain

Problem:
When trying to sync a repository I get the error: Could not evaluate: Exception SSL_connect returned=1 errno=0 state=error: certificate verify failed (self signed certificate in certificate chain)
Expected outcome:
Repository should sync normally

Foreman and Proxy versions:
foreman-2.4.1-1.el8.noarch & foreman-proxy-2.4.1-1.el8.noarch

Foreman and Proxy plugin versions:
rubygem-hammer_cli_foreman_docker-0.0.7-1.el8.noarch
foreman-postgresql-2.4.1-1.el8.noarch
foreman-dynflow-sidekiq-2.4.1-1.el8.noarch
lv-katello.ne.1dc.com-foreman-proxy-client-1.0-1.noarch
foreman-installer-katello-2.4.1-1.el8.noarch
rubygem-hammer_cli_foreman_remote_execution-0.2.1-1.fm2_4.el8.noarch
rubygem-hammer_cli_foreman-2.4.0-1.el8.noarch
rubygem-foreman-tasks-core-0.3.4-1.fm2_1.el8.noarch
rubygem-foreman_remote_execution-4.3.0-1.fm2_4.el8.noarch
foreman-release-2.4.1-1.el8.noarch
rubygem-foreman_ansible-6.2.0-1.fm2_4.el8.noarch
rubygem-hammer_cli_foreman_tasks-0.0.15-1.fm2_2.el8.noarch
foreman-2.4.1-1.el8.noarch
rubygem-foreman-tasks-4.0.1-1.fm2_4.el8.noarch
lv-katello.ne.1dc.com-foreman-client-1.0-1.noarch
rubygem-foreman_maintain-0.8.2-1.el8.noarch
lv-katello.ne.1dc.com-foreman-proxy-1.0-1.noarch
foreman-cli-2.4.1-1.el8.noarch
rubygem-hammer_cli_foreman_bootdisk-0.3.0-1.el8.noarch
rubygem-foreman_remote_execution_core-1.4.0-1.el8.noarch
foreman-installer-2.4.1-1.el8.noarch
foreman-service-2.4.1-1.el8.noarch
foreman-debug-2.4.1-1.el8.noarch
foreman-proxy-2.4.1-1.el8.noarch
rubygem-foreman_virt_who_configure-0.5.5-1.fm2_4.el8.noarch

Distribution and version:
RHEL 8.4
Other relevant data:

We had an issue , did a regular yum update on our katello server , which updated all repos except katello , afterwards we werent able to sync any repositories due to the error column rpm_modulemd.static_context does not exist , after troubleshooting for the whole day , we reverted to a snapshot taken before the update , however after reverting , we keep getting this error when syncing any repos.

I do not have alot of experience with katello and would greatly appreciate any advice!
If some log files are needed I can provide them