i already have the certificate and key file. how to properly setup the certificate on vcenter and esxi host? this is just for the lab and testing purpose.
Please read the vSphere Security document which describes the full procedure and what you need to know.