Update the activemq-demo.xml and add sslContext and wss transport like this[1].Open the websocket-demo page in localhost and ws://localhost:61614 works
But wss://localhost:61615 doesnot.[1]
<sslContext>
<sslContext keyStore="file:${activemq.conf}/broker.ks"
keyStorePassword="password" trustStore="file:${activemq.conf} /broker.ts"
trustStorePassword="password"/>
</sslContext><!-- Create a Websocket transport for the websocket dmeo -->
<transportConnector name="ws" uri="ws://localhost:61614/" />
<transportConnector name="wss" uri="wss://localhost:61615"/>