Python connect to solace Pubsub+ cloud

Hey @Pavithra to have a secure connection, you have to pass a transport security strategy to your messaging service prior to connecting. As you see in the TLS_connection.py sample > , the messaging service is built with a transport security strategy
messaging_service = MessagingService.builder().from_properties(broker_props)\

                 .with_transport_security_strategy(transport_security_strategy)\
                 .build()

and the transport_security_strategy > is defined as follows
transport_security_strategy = TLS.create().with_certificate_validation(True, False, “/Temp/load/certificates/”)
which will pick up the .pem file in your /Temp/load/certificates/ directory. Since you have key stores and other files to pass to your connection, can you try to define a ClientCertificateAuthentication as per the docs here > . Note you will have to pass this authentication strategy to your messaging service as follows
messaging_service = MessagingService.builder().from_properties(broker_props)\

                .with_authentication_strategy(authentication_strategy)\
                .build()

and define your authentication strategy as per the documentation as follows
authentication_strategy = ClientCertificateAuthentication.of(“/path/to/certificate”,“/path/to/key”,“key_password”)\

                      .with_certificate_and_key_pem("/path/to/pem/file")\
                      .with_private_key_password("private_key_password")

Notes > Dont forget to import either TLS or authentication strategy
from solace.messaging.config.transport_security_strategy import TLS

or
from solace.messaging.config.authentication_strategy import ClientCertificateAuthentication
depending on which class you use. Please let me know if this works.