mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	fix: load_cert_chain requires the path, not a file object (#11543)
This commit is contained in:
		| @@ -120,7 +120,7 @@ def prepare( | ||||
|                 cert_file.flush() | ||||
|                 key_file.write(config[CONF_MQTT].get(CONF_CLIENT_CERTIFICATE_KEY)) | ||||
|                 key_file.flush() | ||||
|                 context.load_cert_chain(cert_file, key_file) | ||||
|                 context.load_cert_chain(cert_file.name, key_file.name) | ||||
|         client.tls_set_context(context) | ||||
|  | ||||
|     try: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user