Sets a cluster certificate to a specified PEM file.

rladmin cluster certificate 
        set <certificate name> 
        certificate_file <certificate filepath> 
        [ key_file <key filepath> ]

To set a certificate for a specific service, use the corresponding certificate name:

  • cm for the admin console
  • api for the REST API
  • proxy for the proxy, which manages connections between clients and database endpoints
  • syncer for the syncer, which synchronizes data between clusters (using either Active-Active or Active-Passive replication)
  • metrics_exporter for the metrics exporter, which sends metrics to Prometheus

Parameters

Parameter Type/Value Description
certificate name ‘cm’
‘api’
‘proxy’
‘syncer’
‘metrics_exporter’
Name of the certificate to update
certificate_file filepath Path to the certificate file
key_file filepath Path to the key file (optional)

Returns

Reports that the certificate was set to the specified file. Returns an error message if the certificate fails to update.

Example

$ rladmin cluster certificate set proxy \
       certificate_file /tmp/proxy.pem
Set proxy certificate to contents of file /tmp/proxy.pem