Hi folks,
I am trying to connect to a amqp ssl port from qpid proton. below is the piece 
of code am using to pass the certificate path for SSL domain.
def on_start(self, event):    ssl_domain = SSLDomain(SSLDomain.MODE_CLIENT)
    #path to CA certificate
    ca = "/I/certs/selfsigned.pem"
    ssl_domain.set_trusted_ca_db(str(ca))
    ssl_domain.set_peer_authentication(SSLDomain.VERIFY_PEER_NAME, str(ca))
    
    #conect to the broker
    conn = event.container.connect(url=self.server, user=self.username, 
password=self.password, virtual_host=self.virtualhost)

This works on linux environment, however it gives the below error on windows 
machine. Can someone please guide me here. 
Error:
File "\proton\_handlers.py", line 792, in on_reactor_init        
self.on_start(event)File "\helloworld.py", line 27, in on_start        
ssl.domain.set_trusted_ca_db(str(ca))
File "\proton\_transport.py", line 771, in _check        raise exc("SSL 
failure.")
proton._exceptions.SSLException: SSL failure
Another thing I tried is adding certificates to the windows trusted CAs with no 
luck!
Regards,Dedeepya.T

Reply via email to