Kafka playground - need help with kafka config in python producer

Hi Kodekloud,

I’m trying to use python to write a producer to send messages to a kafka topic that i created on kafka cluster in the playground.
However the python code requires the following information for the producer:
from kafka import KafkaProducer
import json

producer = KafkaProducer(
bootstrap_servers=‘:’,
security_protocol=“SSL”,
ssl_cafile=“./ca.pem”,
ssl_certfile=“./service.cert”,
ssl_keyfile=“./service.key”,
value_serializer=lambda v: json.dumps(v).encode(‘ascii’)
)

Could you please help how i can provide these details if im running the python code for producer from my machie (laptop ), to send message to the topic in the sandbox cluster?

Regards,
Arathy