Complete the code to load a client certificate file for authentication.
client_cert = open('[1]', 'rb').read()
The client certificate file usually has a .crt extension and is used to authenticate the client.
Complete the code to specify the CA certificate file for verifying the server.
ca_cert_path = '[1]'
The CA certificate file is used to verify the server's identity and usually has a .pem extension.
Fix the error in the TLS context setup by completing the missing method call.
tls_context.load_cert_chain(certfile='[1]', keyfile='client.key')
The load_cert_chain method requires the client certificate file as certfile and the private key file as keyfile.
Fill both blanks to create a dictionary with client certificate and key paths.
cert_info = {'cert': '[1]', 'key': '[2]'}The cert key holds the client certificate path, and the key key holds the client private key path.
Fill all three blanks to configure TLS with certificate, key, and CA files.
tls_config = {
'certfile': '[1]',
'keyfile': '[2]',
'cafile': '[3]'
}The certfile is the client certificate, keyfile is the client private key, and cafile is the CA certificate file.