[Spacewalk-list] How to regenerate certs?

Fouts, Christopher Christopher.Fouts at Teradata.com
Wed Apr 12 16:56:44 UTC 2017


I had to hack the script to force DB_SERVICE=postgresql

It was looking for the /etc/init.d/postgresql script, but since is CentOS 7, it’s in /etc/system

Chris

From: "Fouts, Christopher" <Christopher.Fouts at Teradata.com>
Date: Wednesday, April 12, 2017 at 12:35 PM
To: "spacewalk-list at redhat.com" <spacewalk-list at redhat.com>
Subject: Re: [Spacewalk-list] How to regenerate certs?

Thanks.

I tried spacewalk-hostname-rename <ipaddress> but get

Stopping rhn-satellite services ... OK
Testing DB connection ... FAILED
Your database isn't running.
Fix the problem and run /bin/spacewalk-hostname-rename again

I use postgresql and see

$ systemctl status postgresql.service

   Active: active (running) since Wed 2017-04-12 16:34:28 UTC; 26s ago
  Process: 4243 ExecStop=/usr/bin/pg_ctl stop -D ${PGDATA} -s -m fast (code=exited, status=0/SUCCESS)


From: <spacewalk-list-bounces at redhat.com> on behalf of Pavel Studeník <pstudeni at redhat.com>
Reply-To: "spacewalk-list at redhat.com" <spacewalk-list at redhat.com>
Date: Wednesday, April 12, 2017 at 12:22 PM
To: "spacewalk-list at redhat.com" <spacewalk-list at redhat.com>
Subject: Re: [Spacewalk-list] How to regenerate certs?

On 12.4.2017 18:05, Fouts, Christopher wrote:
Part of the spacewalk setup using “spacewalk-setup –disconnected” generated certs. How do I regenerate the certs, just re-run the command?

Chris





_______________________________________________

Spacewalk-list mailing list

Spacewalk-list at redhat.com<mailto:Spacewalk-list at redhat.com>

https://www.redhat.com/mailman/listinfo/spacewalk-list

Hi,
If you want regenerate SSL certifications for https, jabberd,... from /root/ssl-build, you can use command spacewalk-hostname-rename. It is tools when the hostname is changed or you need new certs.

>> yum install spacewalk-utils
>> spacewalk-hostname-rename <ipaddress>

And after that don't forget restart spacewalk servicies.

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/spacewalk-list/attachments/20170412/c0e74e1d/attachment.htm>


More information about the Spacewalk-list mailing list