Servers cannot connect to katello after updating av Certificate

Problem:
Foreman/Katello server.
SSL certificate to foreman has expired.

I followed Foreman :: Plugin Manuals

Didn’t get any errors.

Host error

I get an error when try to install katello-ca-consumer

  • /bin/bash /usr/bin/katello-rhsm-consumer
    /usr/bin/katello-rhsm-consumer: line 260: warning: here-document at line 103 delimited by end-of-file (wanted `EOM’)
    D: install: waitpid(2451) rc 2451 status 100 secs 0.047
    warning: %post(katello-ca-consumer-xxx.xx.com-1.0-5.noarch) scriptlet failed, exit status 1

and my host get’s the following problem

Loaded plugins: enabled_repos_upload, langpacks, package_upload, product-id, search-disabled-repos, subscription-manager, tracer_upload

Repository ‘puppet’ is missing name in configuration, using id
https://forema.xx.xx.com/pulp/repos/xx/xx_DEV/xx_Platform_7/custom/EPEL/EPEL7_x86_64/repodata/repomd.xml: [Errno 14] curl#60 - “Peer’s certificate issuer has been marked as not trusted by the user.”
Trying other mirror.
It was impossible to connect to the Red Hat servers.
This could mean a connectivity issue in your environment, such as the requirement to configure a proxy,
or a transparent proxy that tampers with TLS security, or an incorrect system clock.
Please collect information about the specific failure that occurs in your environment,
using the instructions in: https://access.redhat.com/solutions/1527033 and open a ticket with Red Hat Support.

https://foreman.xx.xx.com/pulp/repos/xx/xx/xxPlatform_7/custom/Katello/Katello_Client_3_5_RHEL7_x86_64/repodata/repomd.xml: [Errno 14] curl#60 - “Peer’s certificate issuer has been marked as not trusted by the user.”
Trying other mirror.

puppet | 2.5 kB 00:00:00
yum.postgresql.org | 4.1 kB 00:00:00
Uploading Enabled Repositories Report
Loaded plugins: langpacks, product-id, subscription-manager

Repository ‘puppet’ is missing name in configuration, using id

Smart-proxy error
I found some error in the smart-proxy logs but I couldn’t find any article about ther error:
*|27 Mar 16:49|ERROR|Failed to list puppet environments: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A |
|—|---|—|
|28 Mar 09:12|ERROR|Failed to list puppet environments: SSL_connect SYSCALL returned=5 errno=0 state=SSLv3 read finished A|

Foreman version 1.16.0

Has anyone hade this problem before?