Updating vCloud Director Certificate using *.wildcard

If you are a Windows admin and don’t have openSSL make sure to install it now, your certificate might not be in .pem and you will need that specific format

Steps:

  1. Rename your .pem and .key files to user.http.pem and user.http.key
  2. Copy the files to /opt/vmware/vcloud-director/data/transfer/ folder (I use Winscp).
  3. SSH into the appliance
  4. Change the owner and the group permissions on the certificate files to vcloud
    chown vcloud.vcloud /opt/vmware/vcloud-director/data/transfer/user.http.pem
    chown vcloud.vcloud /opt/vmware/vcloud-director/data/transfer/user.http.key
  5. Verify that the owner of the certificate files has read and write permissions.
    chmod 0750 /opt/vmware/vcloud-director/data/transfer/user.http.pem
    chmod 0750 /opt/vmware/vcloud-director/data/transfer/user.http.key
  6. Run the command below
    /opt/vmware/vcloud-director/bin/cell-management-tool certificates -j –cert /opt/vmware/vcloud-director/data/transfer/user.http.pem –key /opt/vmware/vcloud-director/data/transfer/user.http.key –key-password root-password
  7. /opt/vmware/vcloud-director/bin/cell-management-tool cell -i $(service vmware-vcd pid cell) -s
  8. wait for at least a minute then execute the command below
    systemctl start vmware-vcd


,

Leave a comment