This section provides some examples of using sp_config_rep_agent to configure security.
To require that all messages be encrypted, execute:
sp_configure_rep_agent pubs2, 'msg confidentiality' 'true'
To change the security mechanism for the RepAgent pathway to DCE, execute:
sp_configure_rep_agent pubs2, 'security mechanism' 'dce'