Currently, you can specify a cert_prefix to fedmsg.publish and it will use that to override the module name guesswork to find the cert to use.
You cannot, however, override the hostname. This has been fine up until now since all of our hosts have relatively stable hostnames.
It is not the case with the copr-be node. It lives in openstack and so gets a hostname like "copr-be-i-00000407" which is subject to change. For now, we have had to hardcode that string in /etc/fedmsg.d/ssl.py.
This seems to be not as necessary anymore.. it looks like the hostname there got stabilized.
Yeah, no need for this anymore.
>>> import socket