Rocky linux guest on (ESXI) VMWare

With the VM turned off, edit the settings. Under VM Options → Boot Options → Firmware - here should be the option to enable/disable secure boot as far as I am aware.