How to enable the protocol encryption