code: public String generateCertificateSigningRequest(boolean useIpAddressAsCommonName) throws HostConfigFault, RuntimeFault, RemoteException {
          return getVimService().generateCertificateSigningRequest(getMOR(), useIpAddressAsCommonName);
      }
docs: Requests the server to generate a certificate-signing request (CSR) for itself. The CSR is then typically
  provided to a Certificate Authority to sign and issue the SSL certificate for the server. Use
  InstallServerCertificate to install this certificate.
  
  @param useIpAddressAsCommonName if true, use host's management IP address as CN in the CSR; otherwise use host's FQDN
  @return CSR in PEM format
  @throws HostConfigFault
  @throws RuntimeFault
  @throws RemoteException