VMware Cloud Community
Capricorn80
Enthusiast
Enthusiast
Jump to solution

Error installing SSL certifcate on VCenter 7.0.3

Hi!

I am getting the following error when replacing the SSL certificate.

Error occurred while fetching tls: String index out of range: -1

 

Anyone suggest something?

 

Regards,

 

Sajid 

Reply
0 Kudos
1 Solution

Accepted Solutions
Capricorn80
Enthusiast
Enthusiast
Jump to solution

I fixed it. Just open the certificate in Text editor and copy/paste it in the required field. 

View solution in original post

14 Replies
onion001
Contributor
Contributor
Jump to solution

I have the same problem....

Reply
0 Kudos
Capricorn80
Enthusiast
Enthusiast
Jump to solution

Do we have to open support ticket for this?

Reply
0 Kudos
shaokat
Enthusiast
Enthusiast
Jump to solution

if your find any solutions please share. 

Shaokat

https://www.linkedin.com/in/shaokat-ullaha/
Reply
0 Kudos
hank-ger
Enthusiast
Enthusiast
Jump to solution

I will open a support case

Reply
0 Kudos
hank-ger
Enthusiast
Enthusiast
Jump to solution

when I replace the certificate via shh with "certificate-manger" it works

Reply
0 Kudos
Capricorn80
Enthusiast
Enthusiast
Jump to solution

Can you please share the link you followed for this?

Reply
0 Kudos
hank-ger
Enthusiast
Enthusiast
Jump to solution

Reply
0 Kudos
hank-ger
Enthusiast
Enthusiast
Jump to solution

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

I choosed the old way to change the machine ssl certificate.

Reply
0 Kudos
Capricorn80
Enthusiast
Enthusiast
Jump to solution

I fixed it. Just open the certificate in Text editor and copy/paste it in the required field. 

Capricorn80
Enthusiast
Enthusiast
Jump to solution

I fixed it. Just open the certificate in Text editor and copy/paste it in the required field. 

dmwmdceng
Contributor
Contributor
Jump to solution

yup, pasting the text into the field worked. thanks,

Reply
0 Kudos
EvansPete
Contributor
Contributor
Jump to solution

Thanks for saving me support call...

Tags (1)
Reply
0 Kudos
xParziwolle
Contributor
Contributor
Jump to solution

Dude....u helped me.

I used "Browse file" in a other vCenter and it was OK.

Today I got your issue with "Error occurred while fetching tls: String index out of range: -1". Fixed with copy&paste...

 

logs:

TLS Certificate replacement failed : String index out of range: -1

Publishing telemetry data to VAC failed with exception : Failed : HTTP error code : 400

java.lang.StringIndexOutOfBoundsException: String index out of range: -1

Thanks!

Reply
0 Kudos
SimonCorp
Contributor
Contributor
Jump to solution

My combined CA chain had a trailing space, perhaps look out for that too.

Reply
0 Kudos