Complete the code to specify the protocol used for secure communication between services.
protocol = "[1]"
The protocol for secure communication using TLS is HTTPS, which encrypts data between services.
Complete the code to load the client certificate for mutual TLS authentication.
client_cert = load_certificate("[1]")
The client certificate file is needed for the client side in mutual TLS to authenticate itself to the server.
Fix the error in the code to enable mutual TLS by setting the correct verification mode.
ssl_context.verify_mode = ssl.CERT_[1]For mutual TLS, the server must require the client certificate, so verify_mode should be CERT_REQUIRED.
Fill both blanks to configure the server to load the CA certificate and enable client certificate verification.
ssl_context.load_verify_locations("[1]") ssl_context.verify_mode = ssl.CERT_[2]
The server loads the CA certificate file (ca.pem) to verify client certificates and sets verify_mode to CERT_REQUIRED to enforce verification.
Fill all three blanks to create a secure client connection with mutual TLS by specifying client cert, key, and CA cert files.
connection = create_tls_connection(client_cert="[1]", client_key="[2]", ca_cert="[3]")
The client needs its certificate (client.pem), private key (client.key), and the CA certificate (ca.pem) to establish mutual TLS.