Configure a client with these TLS options.
(self, client)
| 55 | ) |
| 56 | |
| 57 | def configure_client(self, client): |
| 58 | """ |
| 59 | Configure a client with these TLS options. |
| 60 | """ |
| 61 | if self.verify and self.ca_cert: |
| 62 | client.verify = self.ca_cert |
| 63 | else: |
| 64 | client.verify = self.verify |
| 65 | |
| 66 | if self.cert: |
| 67 | client.cert = self.cert |