Though my issue is with RHEL Server. I have also tried to run the following commands as root and installed the mok file into UEFI which worked before but this time it did not work.
Script:
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"
openssl req -new -x509 -newkey rsa:2048 -keyout MOK.priv -outform DER -out MOK.der -nodes -days 36500 -subj "/CN=VMware/"
/usr/src/kernels/$(uname -r)/scripts/sign-file sha256 ./MOK.priv ./MOK.der $(modinfo -n vmnet)
mokutil --import MOK.der
VMWare verion: 14.1.5 build-10950780
Host OS Version: 3.10.0-957.1.3.el7.x86_64