Ensuring secure communication