Configuring secure communication