VMware Cloud Community

Error comes "Error in connection establishment: net::ERR_INSECURE_RESPONSE" when using Web Console 2.1

when I using the ticket get from vm.AcquireTicket("webmks") of pyVmomi 6.5 to access html console of vm, error came out.

my code in html is following :

<link rel="stylesheet" type="text/css" href="/static/css/wmks-all.css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/ui/1.8.16/jquery-ui.min.js"></script>
<script type="text/javascript" src="/static/wmks.min.js"></script>
<div id="wmksContainer" style="position:absolute;width:100%;height:100%"></div>
<div id="vmTicket" style="display: none;">
  <label id="ticketLable">{{ vmTicket }}</label>
   var wmks = WMKS.createWMKS("wmksContainer",{})
  .register(WMKS.CONST.Events.CONNECTION_STATE_CHANGE, function(event,data){
   if(data.state == WMKS.CONST.ConnectionState.CONNECTED){
   console.log("connection state change : connected");}
   var ticket = $("#ticketLable").html();
   var url = "wss://" + ticket;

error is following :

WebSocket connection to 'wss://' failed: Error in connection establishment: net::ERR_INSECURE_RESPONSE

my vsphere environment is vcenter 6.5 with one Esxi 6.0 host and two Esxi 6.5 hosts. what problems ?

0 Kudos
0 Replies