support for anchored certificate for websocket connections (closes #16)