ESXi 6.x SSL

  1. Start certbot:
    sudo certbot certonly --manual --preferred-challenges dns -d pedge.syninf.net
  2. Complete certbot
  3. Delete TXT record
  4. Enable SSH on ESXi host
  5. Grab keys
    sudo cp /etc/letsencrypt/live/pedge.syninf.net/fullchain.pem rui.crt ; 
    sudo cp /etc/letsencrypt/live/pedge.syninf.net/privkey.pem rui.key 
  6. backup keys on host:
    cd /etc/vmware/ssl/ ;
    mv rui.crt rui.crt.`date +%Y%m%d-%H%M%S`.bak ;
    mv rui.key rui.key.`date +%Y%m%d-%H%M%S`.bak
  7. Move new keys to host:
    scp rui.key rui.crt root@pedge:/etc/vmware/ssl/
  8. Restart the hostd service
    /etc/init.d/hostd restart
  9. Exit SSH and disable

If restarting hostd doesn't work, restart the management agent through the DCUI.

  1. Open console to host via LOM to access DCUI
  2. Customize System → Troubleshooting Options → Restart Management Agents → Exit
  3. Verify new cert, do it again in 90 days.