@@ -53,8 +53,12 @@ def echo_event(data):
5353 help = 'Timeout for TCP based connections.' )
5454@click .option ('--ca-certs' , '-C' , type = click .Path (),
5555 help = 'A CA certificate bundle for TLS connections.' )
56+ @click .option ('--keyfile' , type = click .Path (),
57+ help = 'Private client key for TLS connections.' )
58+ @click .option ('--certfile' , type = click .Path (),
59+ help = 'Public client certificate for TLS connections.' )
5660@click .pass_context
57- def main (ctx , host , port , transport_type , timeout , ca_certs ):
61+ def main (ctx , host , port , transport_type , timeout , ca_certs , keyfile , certfile ):
5862 """Connects to a Riemann server to send events or query the index
5963
6064 By default, will attempt to contact Riemann on localhost:5555 over TCP. The
@@ -74,7 +78,7 @@ def main(ctx, host, port, transport_type, timeout, ca_certs):
7478 if ca_certs is None :
7579 ctx .fail ('--ca-certs must be set when using the TLS transport' )
7680 transport = riemann_client .transport .TLSTransport (
77- host , port , timeout , ca_certs )
81+ host , port , timeout , ca_certs , keyfile , certfile )
7882 elif transport_type == 'none' :
7983 transport = riemann_client .transport .BlankTransport ()
8084
0 commit comments