Posts

Showing posts from January, 2024

Reset ESXi 6 Evaluation License

Image
Reset ESXi 6 Evaluation License Note: Running these commands will cause ESXi to appear offline/down. For example, my UPS virtual machine connected to my actual UPS began shutting down VMs because it believed ESXi ran into a problem. Shut down those VMs firstly before running this command then bring them back up later. Turn on SSH and log in to the host. Remove the current license rm -r /etc/vmware/license.cfg Copy over the new evaluation license, which is already on the host cp /etc/vmware/.#license.cfg /etc/vmware/license.cfg Restart ESXi services /etc/init.d/vpxa restart Confirm the new license Automatic Script The commands above can be run automatic to keep your ESXi license reset on a set schedule using cron. I have also created a script which powers off and on a VM of your choice (such as a UPS agent) in case it shuts down the host. First create the script (reset-eval.sh) somewhere accessible to ESXi. I chose to put in my ZFS0 datastore (/vmfs/volumes/ZFS0/reset.eval) #!/bin/sh #...

Unifi keystore

Image
  https://gist.github.com/hdml/8a446dc1b0ad4f94b7a17a67a33286ab ##Installing a custom SSL cert on Unifi Controller Requirements: Domain certificate (.crt) Certificate key (.key) Intermediate certificate from CA (*.crt, *.pem) Permissions to restart the unifi service Debian or Ubuntu Unifi Controller installation ###Backup your current keystore cd /var/lib/unifi sudo cp keystore keystore.bkp ###Create pkcs12 certificate openssl pkcs12 -export -in domain_certificate.crt -inkey domain_certificate_priv.key -out domain_certificate.p12 -name unifi -CAfile "intermediate_cert_from_CA.crt" -caname root -password pass:aircontrolenterprise Copy your new cert to /etc/ssl/private sudo cp domain_certificate.p12 /etc/ssl/private ###Replace certificate in keystore with newly created cert sudo keytool -importkeystore -deststorepass aircontrolenterprise -destkeypass aircontrolenterprise -destkeystore /usr/lib/unifi/data/keystore -srckeystore /etc/ssl/private/domain_certificate.p12 -srcstoretyp...