Private key failed
-
@Raymond-Bell So you’re good to go now?
-
@Tom-Elliott said:
@Raymond-Bell So you’re good to go now?
Just re-imaged going to let it sit and update the client and see what happens. but i checked random computers i imaged from last week with same image and they are doing fine. So i am guessing i did not give it time to update after i imaged it. Going to check it and make sure after lunch. Will let you know…
-
@Tom-Elliott
It still has not up to 9.12
How long does it take? it has been about 1 1/2 hour
Is there a way to force this update to a client------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 3/28/2016 10:23 PM Client-Info Version: 0.9.11 3/28/2016 10:23 PM Middleware::Communication URL: http://10.24.28.18/fog/management/other/ssl/srvpublic.crt 3/28/2016 10:23 PM Data::RSA FOG Server CA cert found 3/28/2016 10:23 PM Middleware::Authentication Cert OK 3/28/2016 10:23 PM Middleware::Communication POST URL: http://10.24.28.18/fog/management/index.php?sub=authorize 3/28/2016 10:23 PM Middleware::Communication Unknown Response: Private key not found 3/28/2016 10:23 PM Service Sleeping for 120 seconds ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 3/28/2016 10:25 PM Client-Info Version: 0.9.11 3/28/2016 10:25 PM Middleware::Communication URL: http://10.24.28.18/fog/management/other/ssl/srvpublic.crt 3/28/2016 10:25 PM Data::RSA FOG Server CA cert found 3/28/2016 10:25 PM Middleware::Authentication Cert OK 3/28/2016 10:25 PM Middleware::Communication POST URL: http://10.24.28.18/fog/management/index.php?sub=authorize 3/28/2016 10:26 PM Middleware::Communication Unknown Response: Private key not found 3/28/2016 10:26 PM Service Sleeping for 120 seconds```
-
@Raymond-Bell said:
How long does it take
The client will only update if it can authenticate. You have to get the private key not found error fixed before the client will function. If this error was not present, the client would auto update within a minute.
-
@Jbob
Thats what i was thinking so it has to be something with the new trunk -
@Raymond-Bell for the record I too had this issue but upgrading to the latest revision in trunk fixed it.
-
@Jbob Updating now to r5136 and will see what happens
-
@Tom-Elliott @Jbob Update trunk to r5136 and still getting same error
------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 3/29/2016 7:45 AM Client-Info Version: 0.9.11 3/29/2016 7:45 AM Middleware::Communication URL: http://10.24.28.18/fog/management/other/ssl/srvpublic.crt 3/29/2016 7:45 AM Data::RSA FOG Server CA cert found 3/29/2016 7:45 AM Middleware::Authentication Cert OK 3/29/2016 7:45 AM Middleware::Communication POST URL: http://10.24.28.18/fog/management/index.php?sub=authorize 3/29/2016 7:47 AM Bus Became bus server 3/29/2016 7:47 AM Bus { "channel": "Status", "data": "{\r\n \"action\": \"load\"\r\n}" } 3/29/2016 7:47 AM Bus Emmiting message on channel: Status ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 3/29/2016 7:47 AM Client-Info Version: 0.9.11 3/29/2016 7:47 AM Middleware::Communication URL: http://10.24.28.18/fog/management/other/ssl/srvpublic.crt 3/29/2016 7:47 AM Data::RSA FOG Server CA cert found 3/29/2016 7:47 AM Middleware::Authentication Cert OK 3/29/2016 7:47 AM Middleware::Communication POST URL: http://10.24.28.18/fog/management/index.php?sub=authorize 3/29/2016 7:48 AM Middleware::Communication Unknown Response: Private key not found 3/29/2016 7:48 AM Service Sleeping for 120 seconds
And the key is there
fog@fog-virtual-machine14:/opt/fog/snapins/ssl$ ls CA fog.csr fog@fog-virtual-machine14:/opt/fog/snapins/ssl$ ls .?* .srvprivate.key ..: ssl fog@fog-virtual-machine14:/opt/fog/snapins/ssl$
-
@Raymond-Bell These are the files you should have. Check the permissions too.
-
-
@Raymond-Bell Have you tried resetting the encryption on this particular host? It’s done in the web UI under the host’s general area.
-
@Wayne-Workman
Yes, But i had to add it to a group by its self first to get the Reset Option -
@Raymond-Bell There is a manual method for resetting the encryption on all hosts here: https://wiki.fogproject.org/wiki/index.php?title=FOG_Client
This method would also work on an individual host but you’d need to modify the SQL appropriately with a WHERE clause.
-
@Wayne-Workman So you are saying stop apache2 and try running this and see what happens?
Manually reset encryption on ALL hosts
This applies to FOG 1.3.0 where the New Client is in use and for some reason you need to manually reset the encryption for all hosts.
mysql
use fog
UPDATE hosts SET hostPubKey=“”, hostSecToken=“”, hostSecTime=“0000-00-00 00:00:00”; -
@Raymond-Bell You don’t have to stop apache for this, and this is just to make sure the encryption on this particular host is reset.
-
@Wayne-Workman Ok so just run the
mysql use fog UPDATE hosts SET hostPubKey="", hostSecToken="", hostSecTime="0000-00-00 00:00:00";
-
@Wayne-Workman How do i find just this host hostPubKey so i don’t do this on all
-
@Raymond-Bell use a WHERE clause for the hostname. WHERE hostName = ‘someHostName’
-
@Wayne-Workman Like this ?
UPDATE WHERE hostName = "LAB-IMAGE-WIN10" SET hostPubKey="", hostSecToken="", hostSecTime="0000-00-00 00:00:00";
-
@Raymond-Bell Well I normally put the WHERE clause at the very end… but that will either work or give an error. Try it.