@@ -4262,6 +4262,8 @@ def __init__(self):
42624262 help = "Regenerate the cluster certificate and save it to a file" )
42634263 me_group .add_argument ("--set-node-certificate" , dest = "set_cert" , action = "store_true" ,
42644264 default = False , help = "Sets the node certificate" )
4265+ me_group .add_argument ("--set-client-certificate" , dest = "set_client_cert" , action = "store_true" ,
4266+ default = False , help = "Sets the internal client certificate" )
42654267 group .add_argument ("--pkey-passphrase-settings" , dest = "pkey_settings" , metavar = "<path>" ,
42664268 help = "Optional path to a JSON file containing private key passphrase settings" )
42674269 me_group .add_argument ("--set-client-auth" , dest = "client_auth_path" , metavar = "<path>" ,
@@ -4365,9 +4367,13 @@ def val_or_unknown(ca, key):
43654367 _exit_if_errors (errors )
43664368 _success (f'Uploaded cluster certificate to { opts .cluster } ' )
43674369 elif opts .set_cert :
4368- _ , errors = self .rest .set_node_certificate (_read_json_file_if_provided (opts .pkey_settings ))
4370+ _ , errors = self .rest .set_certificate (_read_json_file_if_provided (opts .pkey_settings ), is_client_cert = False )
43694371 _exit_if_errors (errors )
43704372 _success ("Node certificate set" )
4373+ elif opts .set_client_cert :
4374+ _ , errors = self .rest .set_certificate (_read_json_file_if_provided (opts .pkey_settings ), is_client_cert = True )
4375+ _exit_if_errors (errors )
4376+ _success ("Internal client certificate set" )
43714377 elif opts .client_auth_path :
43724378 data = _exit_on_file_read_failure (opts .client_auth_path )
43734379 try :
0 commit comments