Skip to main content

VM Ware Server

HostVMWare Server
FQDN
(Fully Qualified Domain Name)
acvmserver.aspireclan.com
LE64 Command
le64 --key vmsrv-account.key --email "aspireclan1208@gmail.com" --csr vmsrv-domain.csr --csr-key vmsrv-domain.key --crt vmsrv-domain.crt --generate-missing --domains "acvmserver.aspireclan.com" --export-pfx cert@aspireclan123# --handle-as dns --live
Created Date
Expiry Date
Certification creation stepsHow to use Let's Encrypt...
Adding server to the Domain
  1. Log in to the vCenter Server: Using the vSphere Web Client.
  2. Navigate to Administration: In the vSphere Web Client home page, click on Administration.
  3. Under Single Sign-On, select Configuration.
  4. Click on the Identity Sources tab.
  5. Click on the Add Identity Source icon.
  6. In the dialog that opens, select Active Directory (Integrated Windows Authentication) for Windows-based vCenter servers. If your vCenter is on a Linux-based appliance, you'll use the "Active Directory as an LDAP Server" option.
  7. Enter the domain name (e.g., aspireclan.com) and the domain alias (NetBIOS name).
  8. Provide the password for an account that has permissions to join machines to the domain.
  9. Click OK.
  10. Once added, you can set the domain as the default identity source if desired.
  11. Permissions: To allow AD users and groups to access vCenter, you'll need to assign permissions. Go to the vCenter object in the vSphere Web Client, right-click, and choose Add Permission. From here, you can add AD groups or users and assign appropriate roles.
  12. Test: Log out of the vSphere Web Client and then try logging back in using an AD account to ensure the integration works correctly.
  13. Sync both vCenter time and Server time. Use US: 0.us.pool.ntp.org, 1.us.pool.ntp.org, etc.
  14. Europe: 0.europe.pool.ntp.org, 1.europe.pool.ntp.org, etc.
  15. Asia: 0.asia.pool.ntp.org, 1.asia.pool.ntp.org, etc. if required. Not mandatory
  16. Use DNS server Administrator password to add to domain. Refer screenshot below img alt
Certificate installation Steps
  1. Enable SSH in ESXi
  2. Directly connect to the ESXi host's Direct Console User Interface (DCUI) using a monitor, keyboard and mouse
  3. Go to Troubleshooting Options
  4. Enable Enable SSH
  5. Alternatively, if you are using the vSphere Client:
  6. Select the ESXi host in the inventory
  7. Go to the Actions tab
  8. Go to the Services section
  9. Click Enable Secure Shell (SSH)
  10. Backup the existing certificate and key on the ESXi host using PuTTY. Follow below steps in putty
  11. Open PuTTY
  12. login as: [UserName]
  13. Password: [Password]
  14. Execute command: cat /etc/vmware/ssl/rui.crt. This will show the existing certificate in ESXi. Selecte all the texts shown in PuTTY from -----BEGIN CERTIFICATE----- to -----END CERTIFICATE-----
  15. Highlight the content in the PuTTY window (this will automatically copy the highlighted content to your clipboard
  16. Paste the content into a text editor on your Windows machine (e.g., Notepad) and save it with the appropriate filename (e.g., backup_rui.crt)
  17. Execute command: cat /etc/vmware/ssl/rui.key. This will show the existing key in ESXi. Selecte all the texts shown in PuTTY from -----BEGIN PRIVATE KEY----- to -----END PRIVATE KEY-----
  18. Paste the content into a text editor on your Windows machine (e.g., Notepad) and save it with the appropriate filename (e.g., backup_rui.key)
  19. Keep PuTTY open
  20. Open a command prompt with Administrator privilege and go to the PuTTY installated directory [usually it will be in C:\ProgramData\Microsoft\Windows\Start Menu\Programs\PuTTY (64-bit)]
  21. Execute the command pscp "C:\Your path\Your certificate name.crt" root@[VMHost_IP]:/etc/vmware/ssl/rui.crt
  22. Execute the second command pscp "C:\Your path\Your key name.key" root@[VMHost_IP]:/etc/vmware/ssl/rui.key [IMPORTANT: You should always use the domain.key created by the le64.exe]
  23. Close the command prompt
  24. Go back to the PuTTY
  25. Execute the command /etc/init.d/hostd restart
  26. Execute the second command /etc/init.d/vpxa restart
  27. Close PuTTY