Upload to Datastore failure – Self Signed Certificate Error

When uploading file to Datastore you receive: The operation failed for an undetermined reason.  Typically this problem occurs due to certificates that the browser does not trust….


In most corporate environments you will be using an Internal or External Certificate Authority and so you will be looking to use that, however in my lab I haven’t set one up.

When you connect to your vCenter (I have tested with Chrome and IE) you receive: There is a problem with this websites security certificate


Select Continue to this Website (not recommended)

Your vCenter page will load.  At the Bottom Right there is an option to Download trusted root CA certificates

NOTE: I only saw and tested this with vSphere 6.5 and with the VCSA – I have read this option is only available with VCSA and in 6+


Select this and save the ZIP file

Open the file and navigate to the Certs folder – there will be a Linux, Mac and Windows folder – open the appropriate folder4

There are two files, we want the file ending in 0 (NOT r0)

Extract this file by dragging to an appropriate directory

Rename the file by changing the extension from .0 to .cer


Open a Command Prompt with Administrator rights and select Yes at the Prompt6

Type: certmgr.msc


And press Enter – this will bring up the Certificate Manager

Navigate to Trusted Root Certification Authorities and expand this

Right click on Certificates and select All Tasks > Import


Select Next and Browse to the Certificate you just renamed and select Next


Leave the Defaults and Finish

Select Yes at the Security Warning


And you should see: Import Successful

Close your Browser and then Re-open and try to access vCenter again


After this I was able to upload files to my datastores

VIRTUAL LAB – PART 5 – vCenter Setup

So my VCSA is now up and running, I just need to go into vCenter and do some config

  • Licenses
  • Create Datacenter, add Hosts etc..

First thing to do is log in using URL structure: https://<IP of vcsa>//vsphere-client/?csp

NOTE: If you just go to the IP of your vCenter it will give you options to use either HTML5 or Flash

Screen Shot 2017-03-21 at 10.45.53.png

I selected the Flash client which uses the URL above


VCSA (vCenter) Log Locations

Here are a few log files I found useful when deploying the VCSA (vCenter Appliance)

  • /var/log/firstboot
    • rpmInstall.json – A JSON formatted file containing status messages.  Contains progress information, and error messages.
    • cloudvm.log – Log messages created throughout the vCenter Server Appliance installation process.
    • firstbootStatus.json –  A JSON file containing the current status of the installation process. 

VCSA – Failed to execute, during Setup Wizard

When running through the Setup Wizard in the vCenter Server Appliance  version 5.5


you receive:

Failed to execute ‘/usr/sbin/vpxd_servicecfg ‘db’ write’…..



This occurs for SSO and the Database Setup

Connect to the VCSA via Console and Stop the vmware.vpxd service


Once this is down – go back to the GUI and re-run the Setup Wizard