<div dir="ltr">Hi Robert,<div><br></div><div>Thanks for the tips. Was able to login to the postgresql db with the credentials stored on the rhn.conf file. Tried to delete the referenced ky but I think the error is legit, as postgresql is enforcing a key constraint on the two tables so as not to have inconsistent keys. I dug into the table and I see that are are other keys inserted which I think were the ones I made and installed when I installed the newly-built rpms. I now think I don't need to do this step (delete the key) and look for another solution.</div><div><br></div><div><br></div><div>I got another lead though which might get me to the bottom of this issue. I've followed the article on red hat titled "SSL certificate validation failure when attempting to register against RHN". One of the troubleshooting steps is to check the SSL certificate chain. Turns out I have a self-signed certificate in my chain which was causing verification issues.</div><div><br></div><div>Anyone experiencing the same and have tips on how to resolve it?</div><div><br></div><div>Kind regards,</div><div>Francis</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jul 18, 2017 at 4:36 AM, Robert Paschedag <span dir="ltr"><<a href="mailto:robert.paschedag@web.de" target="_blank">robert.paschedag@web.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">Am 17. Juli 2017 16:16:50 MESZ schrieb "Paschedag, Robert" <<a href="mailto:paschedag.netlution@swr.de">paschedag.netlution@swr.de</a>>:<br>
>The credentials for the postgres db should be stored within<br>
>/etc/rhn/rhn.conf on the satellite server.<br>
><br>
>By default, this is<br>
><br>
>User: rhnuser<br>
>PW: rhnpw<br>
>DB: rhnschema<br>
><br>
>So..switching to user postgres<br>
><br>
>Su – postgres<br>
><br>
>And<br>
><br>
>psql -U <user> -d <DB><br>
><br>
>and entering password should give you access.<br>
><br>
>There is also a command to “set” the password<br>
><br>
><br>
><br>
><br>
>Mit freundlichen Grüßen<br>
><br>
>Robert Paschedag<br>
>Netlution GmbH<br>
>Landteilstr. 33<br>
>68163 Mannheim<br>
><br>
>im Auftrag des<br>
>SWR<br>
>Südwestrundfunk<br>
>HA IT, Medientechnik und Programmverbreitung<br>
>Neckarstraße 230<br>
>70190 Stuttgart<br>
><br>
>Telefon <a href="tel:%2B49%20%280%29711%20%2F929-12654" value="+4971192912654">+49 (0)711 /929-12654</a> oder<br>
>Telefon <a href="tel:%2B49%20%280%29711%20%2F929-13714" value="+4971192913714">+49 (0)711 /929-13714</a><br>
><a href="mailto:paschedag.netlution@swr.de">paschedag.netlution@swr.de</a><br>
><br>
><a href="http://swr.de" rel="noreferrer" target="_blank">swr.de</a><br>
><br>
>Von: <a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-bounces@redhat.<wbr>com</a><br>
>[mailto:<a href="mailto:spacewalk-list-bounces@redhat.com">spacewalk-list-<wbr>bounces@redhat.com</a>] Im Auftrag von Vipul Sharma<br>
>(GDC)<br>
>Gesendet: Montag, 17. Juli 2017 14:12<br>
>An: Francis Lee Mondia <<a href="mailto:endace.francis.mondia@gmail.com">endace.francis.mondia@gmail.<wbr>com</a>><br>
>Cc: <a href="mailto:spacewalk-list@redhat.com">spacewalk-list@redhat.com</a><br>
>Betreff: Re: [Spacewalk-list] Spacewalk 2.1 | SSL Certificate Invalid<br>
>when using HTTPS for host registration<br>
><br>
>Hey,<br>
>Do you remember the password you used when creating the DB - Please try<br>
>this password given below -<br>
><br>
>Database - spaceschema<br>
><br>
>Username - spaceuser<br>
><br>
>Password - spacepw<br>
><br>
><br>
>#psql DBNAME USERNAME<br>
><br>
>On Mon, Jul 17, 2017 at 4:45 PM, Francis Lee Mondia<br>
</div></div>><<a href="mailto:endace.francis.mondia@gmail.com">endace.francis.mondia@gmail.<wbr>com</a><mailto:<a href="mailto:endace.francis.mondia@gmail.com">endace.francis.<wbr>mondia@gmail.com</a>>><br>
<span class="">>wrote:<br>
>Hi Vipul,<br>
><br>
>Yes, the service is running as evidenced by the output. The problem as<br>
>shown in the error message was that postgres actually can't update or<br>
>delete the table stated due to a foreign key constraint validation on a<br>
>table.<br>
><br>
>There's a post on the list about it and the recommendation was to<br>
>remove it. Any ideas how to remove it from the DB? I'd actually like to<br>
>log-in to postgres and delete this key being referenced (assuming I<br>
>know the password for postgres).<br>
><br>
>Kind regards,<br>
>Francis<br>
><br>
>On Mon, Jul 17, 2017 at 10:23 PM, Vipul Sharma (GDC)<br>
</span><span class="">><<a href="mailto:sharma.vipul@in.g4s.com">sharma.vipul@in.g4s.com</a><<wbr>mailto:<a href="mailto:sharma.vipul@in.g4s.com">sharma.vipul@in.g4s.com</a><wbr>>> wrote:<br>
>Hey,<br>
>When you are running step 8 - Make sure spacewalk service is running,<br>
>I'm hoping you've must have stopped the service. Service is important<br>
>to push the data to postgres.<br>
>Thanks<br>
>    V<br>
><br>
>On Mon, Jul 17, 2017 at 3:28 PM, Francis Lee Mondia<br>
</span>><<a href="mailto:endace.francis.mondia@gmail.com">endace.francis.mondia@gmail.<wbr>com</a><mailto:<a href="mailto:endace.francis.mondia@gmail.com">endace.francis.<wbr>mondia@gmail.com</a>>><br>
<span class="">>wrote:<br>
>Hi Vipul,<br>
><br>
>Thanks for the response.<br>
><br>
>Still the same, I'm failing on step 8 on this guide<br>
</span>>(<a href="https://github.com/spacewalkproject/spacewalk/wiki/ChangeCaCert" rel="noreferrer" target="_blank">https://github.com/<wbr>spacewalkproject/spacewalk/<wbr>wiki/ChangeCaCert</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspacewalkproject%2Fspacewalk%2Fwiki%2FChangeCaCert&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948648506&sdata=6uTbKGUyx0DTFigKnfdy2kpc2bbLjoESTWBn%2BucL9to%3D&reserved=0" rel="noreferrer" target="_blank">https://<wbr>emea01.safelinks.protection.<wbr>outlook.com/?url=https%3A%2F%<wbr>2Fgithub.com%<wbr>2Fspacewalkproject%<wbr>2Fspacewalk%2Fwiki%<wbr>2FChangeCaCert&data=02%7C01%<wbr>7CPaschedag.Netlution%40swr.<wbr>de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948648506&sdata=<wbr>6uTbKGUyx0DTFigKnfdy2kpc2bbLjo<wbr>ESTWBn%2BucL9to%3D&reserved=0</a>><wbr>):<br>
<div><div class="h5">><br>
>[root@spw01 ~]# rhn-ssl-dbstore -vvv --ca-cert<br>
>/root/ssl-build/RHN-ORG-<wbr>TRUSTED-SSL-CERT<br>
>Public CA SSL certificate:  /root/ssl-build/RHN-ORG-<wbr>TRUSTED-SSL-CERT<br>
><br>
>ERROR: unhandled exception occurred:<br>
>Traceback (most recent call last):<br>
>  File "/usr/bin/rhn-ssl-dbstore", line 43, in <module><br>
>    sys.exit(abs(mod.main() or 0))<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/satellite_<wbr>tools/rhn_ssl_dbstore.py",<br>
>line 79, in main<br>
>satCerts.store_rhnCryptoKey(<wbr>values.label, values.ca_cert,<br>
>verbosity=values.verbose)<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/satellite_<wbr>tools/satCerts.py",<br>
>line 673, in store_rhnCryptoKey<br>
>    verbosity=verbosity)<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/satellite_<wbr>tools/satCerts.py",<br>
>line 614, in _checkCertMatch_rhnCryptoKey<br>
>    h.execute(rhn_cryptokey_id=<wbr>rhn_cryptokey_id)<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/server/<wbr>rhnSQL/sql_base.py",<br>
>line 153, in execute<br>
>    return apply(self._execute_wrapper, (self._execute, ) + p, kw)<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/server/<wbr>rhnSQL/driver_postgresql.py",<br>
>line 290, in _execute_wrapper<br>
>    retval = apply(function, p, kw)<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/server/<wbr>rhnSQL/sql_base.py",<br>
>line 207, in _execute<br>
>    return self._execute_(args, kwargs)<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/server/<wbr>rhnSQL/driver_postgresql.py",<br>
>line 309, in _execute_<br>
>    self._real_cursor.execute(<wbr>self.sql, params)<br>
>psycopg2.IntegrityError: update or delete on table "rhncryptokey"<br>
>violates foreign key constraint "rhn_csssl_cacertid_fk" on table<br>
>"rhncontentsourcessl"<br>
>DETAIL:  Key (id)=(1) is still referenced from table<br>
>"rhncontentsourcessl".<br>
><br>
><br>
>I think the issue is because the server's RHNS-CA-CERT is expired. I<br>
>found this<br>
</div></div>>[<a href="https://www.centos.org/forums/viewtopic.php?t=49388" rel="noreferrer" target="_blank">https://www.centos.org/<wbr>forums/viewtopic.php?t=49388</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.centos.org%2Fforums%2Fviewtopic.php%3Ft%3D49388&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948648506&sdata=aahJV2c4U9lhprmcK0t105rV6DLA6Gb7frlWWQUciA0%3D&reserved=0" rel="noreferrer" target="_blank">h<wbr>ttps://emea01.safelinks.<wbr>protection.outlook.com/?url=<wbr>https%3A%2F%2Fwww.centos.org%<wbr>2Fforums%2Fviewtopic.php%3Ft%<wbr>3D49388&data=02%7C01%<wbr>7CPaschedag.Netlution%40swr.<wbr>de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948648506&sdata=<wbr>aahJV2c4U9lhprmcK0t105rV6DLA6G<wbr>b7frlWWQUciA0%3D&reserved=0</a>>]<br>
<span class="">>but it's referencing a red hat article which is for RHEL 5.<br>
><br>
>Where do I get an updated RHNS-CA-CERT?<br>
><br>
>On Sun, Jul 16, 2017 at 10:53 AM, Vipul Sharma (GDC)<br>
</span><span class="">><<a href="mailto:sharma.vipul@in.g4s.com">sharma.vipul@in.g4s.com</a><<wbr>mailto:<a href="mailto:sharma.vipul@in.g4s.com">sharma.vipul@in.g4s.com</a><wbr>>> wrote:<br>
>I completely forgot one thing --<br>
><br>
>In the above given command - --set-org-unit  should be same as<br>
>--set-common-name. They should be the FQDN only.<br>
><br>
>On Sun, Jul 16, 2017 at 4:20 AM, Vipul Sharma (GDC)<br>
</span><span class="">><<a href="mailto:sharma.vipul@in.g4s.com">sharma.vipul@in.g4s.com</a><<wbr>mailto:<a href="mailto:sharma.vipul@in.g4s.com">sharma.vipul@in.g4s.com</a><wbr>>> wrote:<br>
>Hi Francis,<br>
><br>
>In order to configure Spacewalk successfully - Follow these steps -<br>
><br>
>Make sure your Hostname & FQDN are same.<br>
><br>
>ex - HOSTNAME =<br>
</span>><a href="http://abc.abc.com" rel="noreferrer" target="_blank">abc.abc.com</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabc.abc.com&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948648506&sdata=VkXU9aiUQv7Ozusm1hYoZjkjdtmNIe80keWpY3Lb9vw%3D&reserved=0" rel="noreferrer" target="_blank">https://emea01.<wbr>safelinks.protection.outlook.<wbr>com/?url=http%3A%2F%2Fabc.abc.<wbr>com&data=02%7C01%7CPaschedag.<wbr>Netlution%40swr.de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948648506&sdata=<wbr>VkXU9aiUQv7Ozusm1hYoZjkjdtmNIe<wbr>80keWpY3Lb9vw%3D&reserved=0</a>><br>
>FQDN =<br>
><a href="http://abc.abc.com" rel="noreferrer" target="_blank">abc.abc.com</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabc.abc.com&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948658518&sdata=Npd3Evj28Im5AkpcqdE3jYToagiDzUUOgxR3RTqHplI%3D&reserved=0" rel="noreferrer" target="_blank">https://emea01.<wbr>safelinks.protection.outlook.<wbr>com/?url=http%3A%2F%2Fabc.abc.<wbr>com&data=02%7C01%7CPaschedag.<wbr>Netlution%40swr.de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948658518&sdata=<wbr>Npd3Evj28Im5AkpcqdE3jYToagiDzU<wbr>UOgxR3RTqHplI%3D&reserved=0</a>><br>
<span class="">><br>
>Now,<br>
><br>
>Regenerate all the Certs & Keys --<br>
><br>
>* First change the hostname to FQDN<br>
><br>
>/usr/bin/rhn-ssl-tool --gen-ca --set-country="abc"  --set-state="abc"<br>
>--set-city="abc" --set-org="abc"<br>
</span>>--set-org-unit="<a href="http://abc.com" rel="noreferrer" target="_blank">abc.com</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabc.com&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948658518&sdata=IeWBvGsEH7IoYaHm74tn8Y1r9YOUFcoVhYQYLEmsxdM%3D&reserved=0" rel="noreferrer" target="_blank">https<wbr>://emea01.safelinks.<wbr>protection.outlook.com/?url=<wbr>http%3A%2F%2Fabc.com&data=02%<wbr>7C01%7CPaschedag.Netlution%<wbr>40swr.de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948658518&sdata=<wbr>IeWBvGsEH7IoYaHm74tn8Y1r9YOUFc<wbr>oVhYQYLEmsxdM%3D&reserved=0</a>>"<br>
>--set-common-name="abc"<br>
>--set-email="<a href="http://admin.com" rel="noreferrer" target="_blank">admin.com</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fadmin.com&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948658518&sdata=Orc0yjfy2ky0BuNN1HXD6CKD1mLwtRnXtq7UFVONyT0%3D&reserved=0" rel="noreferrer" target="_blank">https:<wbr>//emea01.safelinks.protection.<wbr>outlook.com/?url=http%3A%2F%<wbr>2Fadmin.com&data=02%7C01%<wbr>7CPaschedag.Netlution%40swr.<wbr>de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948658518&sdata=<wbr>Orc0yjfy2ky0BuNN1HXD6CKD1mLwtR<wbr>nXtq7UFVONyT0%3D&reserved=0</a>>"<br>
<span class="">>--force<br>
><br>
>*To generate new web-server keys --<br>
><br>
>/usr/bin/rhn-ssl-tool --gen-server --set-country="abc"<br>
>--set-state="abc" --set-city="abc" --set-org="abc"<br>
</span>>--set-org-unit="<a href="http://abc.com" rel="noreferrer" target="_blank">abc.com</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fabc.com&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948658518&sdata=IeWBvGsEH7IoYaHm74tn8Y1r9YOUFcoVhYQYLEmsxdM%3D&reserved=0" rel="noreferrer" target="_blank">https<wbr>://emea01.safelinks.<wbr>protection.outlook.com/?url=<wbr>http%3A%2F%2Fabc.com&data=02%<wbr>7C01%7CPaschedag.Netlution%<wbr>40swr.de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948658518&sdata=<wbr>IeWBvGsEH7IoYaHm74tn8Y1r9YOUFc<wbr>oVhYQYLEmsxdM%3D&reserved=0</a>>"<br>
>--set-email="<a href="http://admin.com" rel="noreferrer" target="_blank">admin.com</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fadmin.com&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948658518&sdata=Orc0yjfy2ky0BuNN1HXD6CKD1mLwtRnXtq7UFVONyT0%3D&reserved=0" rel="noreferrer" target="_blank">https:<wbr>//emea01.safelinks.protection.<wbr>outlook.com/?url=http%3A%2F%<wbr>2Fadmin.com&data=02%7C01%<wbr>7CPaschedag.Netlution%40swr.<wbr>de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948658518&sdata=<wbr>Orc0yjfy2ky0BuNN1HXD6CKD1mLwtR<wbr>nXtq7UFVONyT0%3D&reserved=0</a>>"<br>
<span class="">><br>
>*How to update the changes made to CA and web-server --<br>
><br>
</span>><a href="https://github.com/spacewalkproject/spacewalk/wiki/ChangeCaCert" rel="noreferrer" target="_blank">https://github.com/<wbr>spacewalkproject/spacewalk/<wbr>wiki/ChangeCaCert</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fspacewalkproject%2Fspacewalk%2Fwiki%2FChangeCaCert&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948658518&sdata=uCijKeCu2h4oEINDB7vqfknIdpFPYndnFqVZ%2B5Cr2DA%3D&reserved=0" rel="noreferrer" target="_blank">https://<wbr>emea01.safelinks.protection.<wbr>outlook.com/?url=https%3A%2F%<wbr>2Fgithub.com%<wbr>2Fspacewalkproject%<wbr>2Fspacewalk%2Fwiki%<wbr>2FChangeCaCert&data=02%7C01%<wbr>7CPaschedag.Netlution%40swr.<wbr>de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948658518&sdata=<wbr>uCijKeCu2h4oEINDB7vqfknIdpFPYn<wbr>dnFqVZ%2B5Cr2DA%3D&reserved=0</a>><br>
<span class="">><br>
>Thanks<br>
>    V<br>
><br>
>On Sun, Jul 16, 2017 at 2:00 AM, Francis Lee Mondia<br>
</span>><<a href="mailto:endace.francis.mondia@gmail.com">endace.francis.mondia@gmail.<wbr>com</a><mailto:<a href="mailto:endace.francis.mondia@gmail.com">endace.francis.<wbr>mondia@gmail.com</a>>><br>
<span class="">>wrote:<br>
>Hi Michael,<br>
><br>
>Thanks for the reply!<br>
><br>
>On the following suggestions:<br>
>1. Upgrade to latest version - definitely but I want to settle the SSL<br>
>issue first (might just do this next week though if SSL isn't resolved)<br>
>2. Spacewalk-hostname-rename<br>
>- I've done this but haven't resolved the issue. Had to google how to<br>
>install the certificate which led me to<br>
</span>><a href="https://access.redhat.com/solutions/10809" rel="noreferrer" target="_blank">https://access.redhat.com/<wbr>solutions/10809</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Faccess.redhat.com%2Fsolutions%2F10809&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948658518&sdata=kapJlAemcHWzc%2B3yMpcvzs2lq4JFZaR%2BmReUQpv%2FIdc%3D&reserved=0" rel="noreferrer" target="_blank">https://<wbr>emea01.safelinks.protection.<wbr>outlook.com/?url=https%3A%2F%<wbr>2Faccess.redhat.com%<wbr>2Fsolutions%2F10809&data=02%<wbr>7C01%7CPaschedag.Netlution%<wbr>40swr.de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948658518&sdata=<wbr>kapJlAemcHWzc%<wbr>2B3yMpcvzs2lq4JFZaR%2BmReUQpv%<wbr>2FIdc%3D&reserved=0</a>><br>
<div><div class="h5">>-  Followed that guide in just installing the certificate (copying<br>
>rpms, re-installing, etc)  but decided to do the the whole shebang<br>
>instead after encountering the same issue<br>
>- now I'm stuck with this:<br>
><br>
>[root@spacewalkserver ~]# rhn-ssl-dbstore<br>
>--ca-cert=/var/www/html/pub/<wbr>RHN-ORG-TRUSTED-SSL-CERT -vvvvvvvv<br>
>Public CA SSL certificate:  /var/www/html/pub/RHN-ORG-<wbr>TRUSTED-SSL-CERT<br>
>Nothing to do: certificate to be pushed matches certificate in<br>
>database.<br>
>Nothing to do: certificate to be pushed matches certificate in<br>
>database.<br>
><br>
>ERROR: unhandled exception occurred:<br>
>Traceback (most recent call last):<br>
>  File "/usr/bin/rhn-ssl-dbstore", line 43, in <module><br>
>    sys.exit(abs(mod.main() or 0))<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/satellite_<wbr>tools/rhn_ssl_dbstore.py",<br>
>line 79, in main<br>
>satCerts.store_rhnCryptoKey(<wbr>values.label, values.ca_cert,<br>
>verbosity=values.verbose)<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/satellite_<wbr>tools/satCerts.py",<br>
>line 673, in store_rhnCryptoKey<br>
>    verbosity=verbosity)<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/satellite_<wbr>tools/satCerts.py",<br>
>line 614, in _checkCertMatch_rhnCryptoKey<br>
>    h.execute(rhn_cryptokey_id=<wbr>rhn_cryptokey_id)<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/server/<wbr>rhnSQL/sql_base.py",<br>
>line 153, in execute<br>
>    return apply(self._execute_wrapper, (self._execute, ) + p, kw)<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/server/<wbr>rhnSQL/driver_postgresql.py",<br>
>line 290, in _execute_wrapper<br>
>    retval = apply(function, p, kw)<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/server/<wbr>rhnSQL/sql_base.py",<br>
>line 207, in _execute<br>
>    return self._execute_(args, kwargs)<br>
>File<br>
>"/usr/lib/python2.6/site-<wbr>packages/spacewalk/server/<wbr>rhnSQL/driver_postgresql.py",<br>
>line 309, in _execute_<br>
>    self._real_cursor.execute(<wbr>self.sql, params)<br>
>psycopg2.IntegrityError: update or delete on table "rhncryptokey"<br>
>violates foreign key constraint "rhn_csssl_cacertid_fk" on table<br>
>"rhncontentsourcessl"<br>
>DETAIL:  Key (id)=(1) is still referenced from table<br>
>"rhncontentsourcessl".<br>
><br>
><br>
>- I've found this:<br>
</div></div>>[<a href="https://www.redhat.com/archives/spacewalk-list/2016-January/msg00046.html" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>archives/spacewalk-list/2016-<wbr>January/msg00046.html</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.redhat.com%2Farchives%2Fspacewalk-list%2F2016-January%2Fmsg00046.html&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948658518&sdata=aObzHeFK8Cnmze6MkZeMTptWi%2BUK6CJyqvwRi8hBJkQ%3D&reserved=0" rel="noreferrer" target="_blank">https://<wbr>emea01.safelinks.protection.<wbr>outlook.com/?url=https%3A%2F%<wbr>2Fwww.redhat.com%2Farchives%<wbr>2Fspacewalk-list%2F2016-<wbr>January%2Fmsg00046.html&data=<wbr>02%7C01%7CPaschedag.Netlution%<wbr>40swr.de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948658518&sdata=<wbr>aObzHeFK8Cnmze6MkZeMTptWi%<wbr>2BUK6CJyqvwRi8hBJkQ%3D&<wbr>reserved=0</a>>]<br>
<span class="">>which states I should remove the assignment first. THIS I DON'T KNOW<br>
>HOW TO DO.<br>
>- I think it's this<br>
</span>>[<a href="http://gatwards.org/techblog/replacing-spacewalk-ssl-certificates" rel="noreferrer" target="_blank">http://gatwards.org/<wbr>techblog/replacing-spacewalk-<wbr>ssl-certificates</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgatwards.org%2Ftechblog%2Freplacing-spacewalk-ssl-certificates&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948658518&sdata=Nfw6HCtk99eotgWR%2Bsh5DxM0UUKUrh21Z3wOTH24kcQ%3D&reserved=0" rel="noreferrer" target="_blank">https://<wbr>emea01.safelinks.protection.<wbr>outlook.com/?url=http%3A%2F%<wbr>2Fgatwards.org%2Ftechblog%<wbr>2Freplacing-spacewalk-ssl-<wbr>certificates&data=02%7C01%<wbr>7CPaschedag.Netlution%40swr.<wbr>de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948658518&sdata=<wbr>Nfw6HCtk99eotgWR%<wbr>2Bsh5DxM0UUKUrh21Z3wOTH24kcQ%<wbr>3D&reserved=0</a>>]<br>
<span class="">>shows how to do it but I'm adamant to delete the only pair on it. I've<br>
>deleted all expired certs before.<br>
><br>
>Thanks in advance.<br>
><br>
>Kind regards,<br>
>Francis<br>
><br>
>On Fri, Jul 14, 2017 at 11:35 PM, Michael Mraka<br>
</span><div><div class="h5">><<a href="mailto:michael.mraka@redhat.com">michael.mraka@redhat.com</a><<wbr>mailto:<a href="mailto:michael.mraka@redhat.com">michael.mraka@redhat.<wbr>com</a>>> wrote:<br>
>Francis Lee Mondia:<br>
>> Hi All,<br>
>><br>
>> Sorry for this seemingly noob question but I'm new to spacewalk and<br>
>just<br>
>> inherited a system which was not being used for about 2 years and now<br>
>I've<br>
>> been tasked to revive it.<br>
><br>
>Hi,<br>
><br>
>First of all I'd suggest upgrade to latest Spacewalk (2.6) because<br>
>there<br>
>were a lot of bugs fixed since then (including security issues).<br>
><br>
>> So I've got the system running, updated the channels, repos and now<br>
>came<br>
>> the process of re-adding hosts to the system. I was being shown the<br>
>SSL<br>
>> certicate error as I think the certificate has expired. I can<br>
>register<br>
>> hosts fine without SSL, and can push package updates to hosts fine<br>
>without<br>
>> it. I do want to resolve this though moving forward. I've tried the<br>
>> numerous suggestions I can find (we have a red hat subscription so<br>
>was able<br>
>> to try their solutions too but none worked).<br>
><br>
>Install spacewalk-utils package and run spacewalk-hostname-rename<br>
>script.<br>
>It will regenerate all SSL certs.<br>
><br>
>> I'd also like to know though if upgrading spacewalk to a newer<br>
>version<br>
>> install a new SSL cert. When we first took a look at the system, we<br>
><br>
>AFAIR upgrade will not change SSL certs.<br>
><br>
>> couldn't log-in as the satellite certificate was expired and we had<br>
>to<br>
>> generate one from red hat support to be able to log back in.<br>
>><br>
>> Hoping for some guidance on this from the community.<br>
>><br>
>> Kind regards,<br>
>> Francis<br>
><br>
>Regards,<br>
><br>
><br>
>--<br>
>Michael Mráka<br>
>System Management Engineering, Red Hat<br>
><br>
>_____________________________<wbr>__________________<br>
>Spacewalk-list mailing list<br>
</div></div>><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><<wbr>mailto:<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.<wbr>com</a>><br>
><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/spacewalk-<wbr>list</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.redhat.com%2Fmailman%2Flistinfo%2Fspacewalk-list&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948658518&sdata=8wAw4%2BnmfT7kGNPIyFYDK64dBe3zs5vDIr8YFI%2BmS7c%3D&reserved=0" rel="noreferrer" target="_blank">https://emea01.safelinks.<wbr>protection.outlook.com/?url=<wbr>https%3A%2F%2Fwww.redhat.com%<wbr>2Fmailman%2Flistinfo%<wbr>2Fspacewalk-list&data=02%7C01%<wbr>7CPaschedag.Netlution%40swr.<wbr>de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948658518&sdata=<wbr>8wAw4%<wbr>2BnmfT7kGNPIyFYDK64dBe3zs5vDIr<wbr>8YFI%2BmS7c%3D&reserved=0</a>><br>
><br>
><br>
>_____________________________<wbr>__________________<br>
>Spacewalk-list mailing list<br>
><a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.com</a><<wbr>mailto:<a href="mailto:Spacewalk-list@redhat.com">Spacewalk-list@redhat.<wbr>com</a>><br>
><a href="https://www.redhat.com/mailman/listinfo/spacewalk-list" rel="noreferrer" target="_blank">https://www.redhat.com/<wbr>mailman/listinfo/spacewalk-<wbr>list</a><<a href="https://emea01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.redhat.com%2Fmailman%2Flistinfo%2Fspacewalk-list&data=02%7C01%7CPaschedag.Netlution%40swr.de%7Cc7d92ced12154370d03a08d4cd0d31db%7Cbcca095d88d442f88260cc216b81f62d%7C0%7C0%7C636358903948658518&sdata=8wAw4%2BnmfT7kGNPIyFYDK64dBe3zs5vDIr8YFI%2BmS7c%3D&reserved=0" rel="noreferrer" target="_blank">https://emea01.safelinks.<wbr>protection.outlook.com/?url=<wbr>https%3A%2F%2Fwww.redhat.com%<wbr>2Fmailman%2Flistinfo%<wbr>2Fspacewalk-list&data=02%7C01%<wbr>7CPaschedag.Netlution%40swr.<wbr>de%<wbr>7Cc7d92ced12154370d03a08d4cd0d<wbr>31db%<wbr>7Cbcca095d88d442f88260cc216b81<wbr>f62d%7C0%7C0%<wbr>7C636358903948658518&sdata=<wbr>8wAw4%<wbr>2BnmfT7kGNPIyFYDK64dBe3zs5vDIr<wbr>8YFI%2BmS7c%3D&reserved=0</a>><br>
<div><div class="h5">><br>
><br>
><br>
><br>
>Please consider the environment before printing this email.<br>
>*****************************<wbr>******************************<wbr>**********<br>
>This communication may contain information which is confidential,<br>
>personal and/or privileged. It is for the exclusive use of the intended<br>
>recipient(s).<br>
>If you are not the intended recipient(s), please note that any<br>
>distribution, forwarding, copying or use of this communication or the<br>
>information in it is strictly prohibited. If you have received it in<br>
>error please contact the sender immediately by return e-mail. Please<br>
>then delete the e-mail and any copies of it and do not use or disclose<br>
>its contents to any person.<br>
>Any personal views expressed in this e-mail are those of the individual<br>
>sender and the company does not endorse or accept responsibility for<br>
>them. Prior to taking any action based upon this e-mail message, you<br>
>should seek appropriate confirmation of its authenticity.<br>
>This message has been checked for viruses on behalf of the company.<br>
>*****************************<wbr>******************************<wbr>**********<br>
><br>
><br>
><br>
><br>
>Please consider the environment before printing this email.<br>
>*****************************<wbr>******************************<wbr>**********<br>
>This communication may contain information which is confidential,<br>
>personal and/or privileged. It is for the exclusive use of the intended<br>
>recipient(s).<br>
>If you are not the intended recipient(s), please note that any<br>
>distribution, forwarding, copying or use of this communication or the<br>
>information in it is strictly prohibited. If you have received it in<br>
>error please contact the sender immediately by return e-mail. Please<br>
>then delete the e-mail and any copies of it and do not use or disclose<br>
>its contents to any person.<br>
>Any personal views expressed in this e-mail are those of the individual<br>
>sender and the company does not endorse or accept responsibility for<br>
>them. Prior to taking any action based upon this e-mail message, you<br>
>should seek appropriate confirmation of its authenticity.<br>
>This message has been checked for viruses on behalf of the company.<br>
>*****************************<wbr>******************************<wbr>**********<br>
><br>
><br>
><br>
><br>
>Please consider the environment before printing this email.<br>
>*****************************<wbr>******************************<wbr>**********<br>
>This communication may contain information which is confidential,<br>
>personal and/or privileged. It is for the exclusive use of the intended<br>
>recipient(s).<br>
>If you are not the intended recipient(s), please note that any<br>
>distribution, forwarding, copying or use of this communication or the<br>
>information in it is strictly prohibited. If you have received it in<br>
>error please contact the sender immediately by return e-mail. Please<br>
>then delete the e-mail and any copies of it and do not use or disclose<br>
>its contents to any person.<br>
>Any personal views expressed in this e-mail are those of the individual<br>
>sender and the company does not endorse or accept responsibility for<br>
>them. Prior to taking any action based upon this e-mail message, you<br>
>should seek appropriate confirmation of its authenticity.<br>
>This message has been checked for viruses on behalf of the company.<br>
>*****************************<wbr>******************************<wbr>**********<br>
<br>
</div></div>But just another information. When you get a SSL error from the client, then you have to check the SSL certificate on the "webserver"!<br>
<span class="HOEnZb"><font color="#888888"><br>
Robert<br>
</font></span></blockquote></div><br></div>