Configuring certificates and secure communication protocols