Private key failed
-
@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.
-
@Wayne-Workman Done
mysql> UPDATE hosts SET hostPubKey="", hostSecToken="", hostSecTime="0000-00-00 00:00:00"; WHERE hostName = "LAB-IMAGE-WIN10" Query OK, 4 rows affected (0.04 sec) Rows matched: 804 Changed: 4 Warnings: 0
-
@Raymond-Bell said:
Query OK, 4 rows affected (0.04 sec)
4 rows affected?
Can you run this command and see what the return is?
SELECT hostID,hostName FROM hosts WHERE hostName = 'LAB-IMAGE-WIN10';
-
mysql> SELECT hostName,hostID from hosts where hostName = 'LAB-IMAGE-WIN10'; +-----------------+--------+ | hostName | hostID | +-----------------+--------+ | LAB-IMAGE-WIN10 | 1701 | +-----------------+--------+ 1 row in set (0.08 sec) mysql>
-
@Raymond-Bell Well what does the host’s fog log say now?
-
------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 3/29/2016 9:28 AM Client-Info Version: 0.9.12 3/29/2016 9:28 AM Middleware::Communication URL: http://10.24.28.18/fog/management/other/ssl/srvpublic.crt 3/29/2016 9:28 AM Data::RSA FOG Server CA cert found 3/29/2016 9:28 AM Middleware::Authentication Cert OK 3/29/2016 9:28 AM Middleware::Communication POST URL: http://10.24.28.18/fog/management/index.php?sub=authorize 3/29/2016 9:28 AM Middleware::Communication Unknown Response: Private key not found 3/29/2016 9:28 AM Service Sleeping for 120 seconds ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 3/29/2016 9:30 AM Client-Info Version: 0.9.12 3/29/2016 9:30 AM Middleware::Communication URL: http://10.24.28.18/fog/management/other/ssl/srvpublic.crt 3/29/2016 9:31 AM Data::RSA FOG Server CA cert found 3/29/2016 9:31 AM Middleware::Authentication Cert OK 3/29/2016 9:31 AM Middleware::Communication POST URL: http://10.24.28.18/fog/management/index.php?sub=authorize 3/29/2016 9:31 AM Middleware::Communication Unknown Response: Private key not found 3/29/2016 9:31 AM Service Sleeping for 120 seconds```
-
@Raymond-Bell Is this with just this one host or is it all hosts?
-
@Wayne-Workman This looks like it is with all host, this is from another computer
------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 3/29/2016 10:30 AM Client-Info Version: 0.9.12 3/29/2016 10:30 AM Middleware::Communication URL: http://10.24.28.18/fog/management/other/ssl/srvpublic.crt 3/29/2016 10:30 AM Data::RSA FOG Server CA cert found 3/29/2016 10:30 AM Middleware::Authentication Cert OK 3/29/2016 10:30 AM Middleware::Communication POST URL: http://10.24.28.18/fog/management/index.php?sub=authorize 3/29/2016 10:31 AM Middleware::Communication Unknown Response: Private key not found 3/29/2016 10:31 AM Service Sleeping for 120 seconds ------------------------------------------------------------------------------ --------------------------------Authentication-------------------------------- ------------------------------------------------------------------------------ 3/29/2016 10:33 AM Client-Info Version: 0.9.12 3/29/2016 10:33 AM Middleware::Communication URL: http://10.24.28.18/fog/management/other/ssl/srvpublic.crt 3/29/2016 10:33 AM Data::RSA FOG Server CA cert found 3/29/2016 10:33 AM Middleware::Authentication Cert OK 3/29/2016 10:33 AM Middleware::Communication POST URL: http://10.24.28.18/fog/management/index.php?sub=authorize 3/29/2016 10:33 AM Middleware::Communication Unknown Response: Private key not found 3/29/2016 10:33 AM Service Sleeping for 120 seconds
-
@Raymond-Bell What displays in a web browser if you go to:
http://10.24.28.18/fog/management/index.php?sub=authorizeWhen I go to that address with my fog server, it responds with this:
#!im