Did you add the repository providing the package as it is not part of Debian’s base repositories? It is hosted by ATIX and you can find the instructions at Debian
Because you first need the part above the specific options for Debian 11/12 as well:
wget --no-check-certificate -O katello-rhsm-consumer https://foreman.example.com/pub/katello-rhsm-consumer /bin/bash -x katello-rhsm-consumer 2< /root/katello-rhsm-consumer.log
You can now run subscription-manager register --org="my-organisation" --name="my-host.example.com" --activationkey="my-activation-key" to subscribe your host to Foreman.
Yes, but I think this is part of the register template already, so making the repository available should be enough. The register command is the new preferred way to bring an already existing host into Foreman/Katello over the direct use of subscription-manager register.
Yeah I think so too that most of the stuff that the register template covers most of the stuff, but if the client does not trust the CA which signed the cert yet, then you definitely need it (or manually add it to the truststore), right?