VMware Cloud Community
namich2000
Contributor
Contributor

VCenter 6.7 SSL renewal

Hello ALL

I have an issue with my Vcenter 6.7 appliance. I am not able to log in due to expired certificate. After some research, I came across this link with a resolution.

https://kb.vmware.com/s/article/76719 

I downloaded the fixsts script and got up to step 6. Everytime I run the script as root, I get the following error:

[root@Esxi5-SRV-C:/bin] [root@Esxi5-SRV-C:/bin] ./fixsts.sh
-sh: [root@Esxi5-SRV-C:/bin]: not found

My script file is in the /bin and has the appropriate permissions


-rwxr-xr-x 1 root root 11092 Jun 12 16:40 fixsts.sh
:

so why when I run ./fixsts.sh, or ./bin/fixsts.sh or bash fixsts.sh...I always get not found error message from my vCenter?

 

Thanks

 

 

Reply
0 Kudos
3 Replies
Sachchidanand
Expert
Expert

Hi,

Please check the path where you downloaded the script like in /tmp or any other location.

Just go to that path and give the execute permission to script and run.

Regards,

Sachchidanand

Reply
0 Kudos
namich2000
Contributor
Contributor

Hello Sachchidanand

Thanks for your feedback. However this is exactly what I have done. I downloaded the file to  /tmp.

cd /tmp 

chmod +x /fixsts.sh

ls -l ...shows the file permissions as :::  -rwxr-xr-x 1 root root 11092 Jun 12 16:40 fixsts.sh

However when I try to run >   ./fixsts.sh, or ./bin/fixsts.sh or bash fixsts.sh     I get the following error message 

 

[root@Esxi5-SRV-C:/bin] [root@Esxi5-SRV-C:/bin] ./fixsts.sh

-sh: [root@Esxi5-SRV-C:/bin]: not found

Should this command be executed on the vCenter server(A vm machine)  or the host server?

 

Thanks

 

Reply
0 Kudos
Sachchidanand
Expert
Expert

Hi,

This command should be executed on vCenter Vm.

As i can see from the output you shared, you are running this command in /bin 

[root@Esxi5-SRV-C:/bin] ./fixsts.sh

If you copied this script in /tmp, then execute it from the same path

Regards,

Sachchidanand

Reply
0 Kudos