When you install a new SSL certificate on Cryptographic Security Platform Vault, Cryptographic Security Platform Vault automatically updates the associated CA certificate on all registered VMs. If a Linux root-drive-encrypted VM was inaccessible during this process, that VM may not be able to boot because the CA certificate the VM is using can no longer verify the Cryptographic Security Platform Vault SSL certificate. This means that the VM cannot retrieve the proper keys from Cryptographic Security Platform Vault because it cannot verify the communication coming from Cryptographic Security Platform Vault.
To fix this issue you need to manually update the CA certificate on the VM so that it can verify the SSL certificate Cryptographic Security Platform Vault is currently using. This allows the VM to verify Cryptographic Security Platform Vault's identity and to retrieve the appropriate keys.
Important: Manually updating the certificate requires ssh access to the VM. If you did not enable the Entrust Debug Console when you ran the htroot encrypt command on the root drive, you need to contact Entrust Support at hytrust.support@entrust.com.
The following procedure is for Linux VMs with an encrypted root drive. For other types of VMs, see Manually Updating the CA Certificate on a Windows Boot Drive Encrypted VM or Manually Updating the CA Certificate on a Data Encrypted VM.
Procedure
If you need a copy of the CA certificate that can verify the SSL certificate that Cryptographic Security Platform Vault is currently using:
- Log into the Cryptographic Security Platform Vault Management webGUI with your standard account credentials.
Select ? > Download CA Certificate.
The Cryptographic Security Platform Vault downloads a
pemfile to your browser's default download location.
Note: If you are using an externally signed SSL certificate for Cryptographic Security Platform Vault, make sure that you use the CA certificate you download from Cryptographic Security Platform Vault Management webGUI on all registered VMs. Do not use the CA certificate that you received from the external certificate authority.
Download the Bootloader SSH key for the VM so that you can open an SSH session and copy the new certificate file to the Bootloader:
- Log into the Cryptographic Security Platform Vault for VM Encryption using an account with Cloud Admin privileges.
- Navigate to the Workloads > VMs tab and select the VM whose CA certificate you want to update.
Select Actions > Download Bootloader SSH Key. The Cryptographic Security Platform Vault for VM Encryption downloads the SSH key to file called
server-name.keyin your browser's default download location. For example, if the server name is rhelsvr74, the SSH key file would be calledrhelsvr74.key.
Open an
sshsession and access the Entrust Debug Console on the root drive encrypted VM by entering the commandssh -i, whereserver-name.keyroot@vm_nameserver-name.keyis the name of the SSH key file andvm_nameis the IP address or hostname. For example:# ssh -i ~/Downloads/rhelsvr74.key root@192.168.140.133 Warning: Permanently added '192.168.140.133' (RSA) to the list of known hosts. BusyBox v1.20.2 (Ubuntu 1:1.20.0-8.1ubuntu1) built-in shell (ash) Enter 'help' for a list of built-in commands. HyTrust Debug Console 1. Show HT encryption log file 2. Authenticate 3. Show Network info 4. Restart Network 5. Advanced access 6. logout Action:
Select
Advanced access. The Entrust Policy Agent displays a secure shell prompt (sh). For example:Action: 5 sh-10.5.3#Open a second
sshsession and copy the CA certificate file to the VM by entering the commandscp -i, whereserver-name.keycacert.pem root@vm_name:cacert.pemserver-name.keyis the name of the SSH key file,cacert.pemis the fully qualified path to the pem file, andvm_nameis the IP address or hostname. For example:$ scp -i ~/Downloads/rhelsvr74.key ~/Downloads/180412071755_cacert.pem root@192.168.140.133:180412071755_cacert.pem
Return to the Entrust Debug Console on the encrypted VM and update the certificate by entering the command
hcl update_ca -f cacert.pem, wherecacert.pemis the fully qualified path to the pem file. For example:sh-10.5.3# hcl update_ca -f ./180412071755_cacert.pem Updating using cert file at: ./180412071755_cacert.pem Updated CA certificate- Enter the command
hcl heartbeatto prompt the VM to contact Cryptographic Security Platform Vault. This updates the status information for the VM. Enter the command
hcl statusto confirm that the last heartbeat between the VM and Cryptographic Security Platform Vault was successful. For example:sh-10.5.3# hcl heartbeat sh-10.5.3# hcl status Summary -------------------------------------------------------------------------------- KeyControl: 10.238.65.65:443 KeyControl list: 10.238.65.65:443 10.238.65.66:443 KeyControl Mapping: kc41-nodes Status: Reauth needed (Virtual Machine not authenticated) Last heartbeat: Tue Oct 24 22:19:32 2017 (failed) AES_NI: enabled Certificate Expiration: Sep 11 22:16:13 2020 GMT
If the
hcl statuscommand says that the VM needs to be re-authenticated, enter the commandhcl auth -a [-u user [-s password]], where:-uis a Cryptographic Security Platform Vault user account name with Cloud Admin privileges.-pis the password for the Cloud Admin account.
If you do not provide a user name and password, you will be prompted for one. For example:
sh-10.5.3# hcl auth -a Please provide the KeyControl login details username: secroot password: Completing authentication on KeyControl node Authentication complete, machine ready to use- Enter the command
hcl heartbeatto prompt the VM to contact Cryptographic Security Platform Vault. This updates the status information for the VM. - If the heartbeat is successful, enter the command
exitto leave the secure shell and selectlogoutfrom the Entrust Debug Console main menu. The VM should automatically continue booting from the encrypted root drive.