@@ -56,8 +56,12 @@ def echo_event(data):
5656 help = 'Timeout for TCP based connections.' )
5757@click .option ('--ca-certs' , '-C' , type = click .Path (),
5858 help = 'A CA certificate bundle for TLS connections.' )
59+ @click .option ('--keyfile' , type = click .Path (),
60+ help = 'Private client key for TLS connections.' )
61+ @click .option ('--certfile' , type = click .Path (),
62+ help = 'Public client certificate for TLS connections.' )
5963@click .pass_context
60- def main (ctx , host , port , transport_type , timeout , ca_certs ):
64+ def main (ctx , host , port , transport_type , timeout , ca_certs , keyfile , certfile ):
6165 """Connects to a Riemann server to send events or query the index
6266
6367 By default, will attempt to contact Riemann on localhost:5555 over TCP. The
@@ -77,7 +81,7 @@ def main(ctx, host, port, transport_type, timeout, ca_certs):
7781 if ca_certs is None :
7882 ctx .fail ('--ca-certs must be set when using the TLS transport' )
7983 transport = TLSTransport (
80- host , port , timeout , ca_certs )
84+ host , port , timeout , ca_certs , keyfile , certfile )
8185 elif transport_type == 'none' :
8286 transport = BlankTransport ()
8387
0 commit comments