Skip to content

Commit 2c93495

Browse files
rkubispematous
authored andcommitted
UPD(coreclient): Use system CA database by default if not set explicitly
1 parent a27aeb0 commit 2c93495

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

cli_proton_python/coreclient.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,8 @@ def set_up_ssl_server_auth(self, event):
123123
:param event: reactor event
124124
:type event: proton.Event
125125
"""
126-
if not self.opts.conn_ssl_trust_store:
127-
raise ValueError('trust store path needs to be given: %s'
128-
% self.opts.conn_ssl_trust_store)
129-
event.container.ssl.client.set_trusted_ca_db(self.opts.conn_ssl_trust_store)
126+
if self.opts.conn_ssl_trust_store:
127+
event.container.ssl.client.set_trusted_ca_db(self.opts.conn_ssl_trust_store)
130128
if self.opts.conn_ssl_verify_peer_name:
131129
event.container.ssl.client.set_peer_authentication(proton.SSLDomain.VERIFY_PEER_NAME)
132130
elif self.opts.conn_ssl_verify_peer:

0 commit comments

Comments
 (0)