How to replace the PubKey.crt file

Article:TECH107070  |  Created: 2000-01-06  |  Updated: 2012-03-08  |  Article URL http://www.symantec.com/docs/TECH107070
Article Type
Technical Solution

Environment

Issue



This document describes how to replace the PubKey.crt file on one of your client computers.

 


Solution



Ghost uses the file PubKey.crt, also known as a public certificate, when you run the Ghost Console at one computer and the Ghost Client at the client computers. The Ghost Client, which is NGctdos.exe in DOS and NGctw32.exe in Windows, consults PubKey.crt to determine which Ghost server computer to connect to. If the PubKey.crt file does not exist on the client computer, the Ghost Client connects to the first Ghost server computer it finds on the network and creates a PubKey.crt file that records identifying information for that computer.

Deleting or replacing PubKey.crt often resolves problems in which the Ghost Client and Ghost Server do not recognize each other on the network.

 


Note:
When using Ghost.exe with Ghost Multicast Server or GhostCast Server, Ghost uses Pubkey.crt and the Session Name to identify the computers, rather than using PubKey.crt alone.
 



Ghost has two versions of PubKey.crt on each client computer
Ghost uses two copies of PubKey.crt on the client computer. The files have the same name, but are modified or deleted separately from each other.

One copy of PubKey.crt is in the Ghost folder under Program Files.

The location of the other copy depends on whether the client computer has a Ghost boot partition:

  • When the client computer has a Ghost boot partition: The Ghost boot partition has a copy of PubKey.crt.
  • When the client computer does not have a Ghost boot partition: The Ghost 7.5 and 8.0 Console uses a Ghost Virtual Boot Partition when running a Task that includes that client computer. The Console automatically adds a copy of PubKey.crt to the Ghost Virtual Boot Partition when you run the Task. Each time you run the Task, the Console replaces the copy of PubKey.crt that is in the Ghost Virtual Boot Partition with a fresh copy.


When you need to delete or replace PubKey.crt because the Ghost client computer cannot connect to the Ghost Console, you usually need to delete or replace the copy that is in the Ghost folder and the copy that is in the Ghost boot partition. You do not need to delete or replace the copy that is in the Ghost Virtual Boot Partition.

 


Note:
The client will not report to the console until the next scheduled client heartbeat. If the client heartbeat is set to 0 set to a long interval, the client will not show up quickly on the console. The client heartbeat can be set in the Ghost Console at Tools > Options > Client > Interval. For more information on this, read the document How to stop the Ghost Client's broadcast messages.
 



Replacing PubKey.crt in the Ghost folder
Use Windows to replace the copy of PubKey.crt that is in the Ghost folder:

  1. Delete the file:
    1. Open Windows Explorer
    2. Locate the file PubKey.crt
    3. Right-click the file name.
    4. Click Delete.
  2. Replace the file with a new copy. Use one of the following methods:
    • Let Ghost create a new copy. Use this method when you have only one Ghost Server computer on the network:
      1. Restart the computer. This restarts the Ghost Client.
      2. Start the Ghost Console on the Ghost server computer. The Ghost Client locates the first available Ghost server computer on the network, and creates a new PubKey.crt that binds the Ghost Client to that server.
    • Use an existing copy. Use this method when you have more than one Ghost Server computer on the network:
      1. Copy PubKey.crt from the Ghost server computer to the Ghost folder on the Ghost client computer.
      2. Restart the client computer. This restarts the Ghost Client. Because the PubKey.crt file is the same as on the Ghost server computer, the Ghost Client is already bound to that Ghost Server.
         


Replacing PubKey.crt in the Ghost boot partition
To replace the PubKey.crt file that is in the hidden boot partition of the client computer, choose one of the following options:

  • Create and distribute a new boot partition.
  • Delete or replace the existing PubKey.crt file.
  • Delete the Ghost boot partition. Do this only if you have Symantec Ghost 7.5 or later. Ghost 7.5 and 8.0 can use a Ghost Virtual Boot Partition instead of an actual Ghost boot partition.


To create and distribute a new boot partition:

  1. Use Multicast Assist or Ghost Boot Wizard to create a new boot partition image. Boot partition images created with Multicast Assist include PubKey.crt.
  2. Use Ghost Multicast to distribute the image, being sure that you choose the following options in Ghost Multicast Server:
    • Partition, instead of Disk.
    • Load to Clients, instead of Dump from Client.
    • Partition 1 instead of a disk number or a differently numbered partition.


To delete or replace the existing PubKey.crt file:

  1. Boot the client computer with a DOS boot disk that contains GDisk.
  2. Run GDisk using the following command line:

    GDISK 1 /-HIDE /P:1 /Y /R

    The computer restarts.
  3. At the DOS prompt, change to the C: drive (the Ghost Boot Partition) and do one of the following:
    • Delete the PubKey.crt file. The next time you connect to the Ghost Console, Ghost will create a new PubKey.crt file.
    • Replace PubKey.crt with a copy from the Ghost Server computer that you want the Ghost Client to bind to.
  4. Run GDisk with the following command line:

    GDISK 1 /HIDE /P:1 /Y
     
  5. Remove the boot disk and restart the computer.






 



Legacy ID



2000010615344725


Article URL http://www.symantec.com/docs/TECH107070


Terms of use for this information are found in Legal Notices