6.2. getcert.pl script

getcert.pl is a script designed to fetch certificates from a specified remote host. Once fetched, these certificates can be copied and pasted into the dashboard form, or included in the values.yaml during installation.

Usage

getcert.pl [ --api, -a ] [ --help, -h ] [ --port, -p ] [ --quiet, -q ] [ --tcp, -t ]

Where:

Table 6.2. getcert.pl Options

OptionDescription
--api, -aUse this option to fetch the Manager API certificate on the default port 8090
--help, -hUse this option to display the help message.
--port, -pUse this option to specify the port - requires either `--api` or `--tcp` argument.
--quiet, -qUse this option to suppress verbose output and display only the certificate content.
--tcp, -tUse this option to fetch the TCP certificate on the default port 11999

Examples

Fetch the API certificate from a host:

shell> ./getcert.pl --api db1.continuent.com

Fetching API certificate from db1.continuent.com:8090 ...

-----BEGIN CERTIFICATE-----
MIIDBDCCAeygAwIBAgIBAzANBgkqhkiG9w0BAQsFADA8MTowOAYDVQQDDDFNeVNR
... rest of certificate content ...
LwZn40KuWnk=
-----END CERTIFICATE-----

Please copy this API certificate (including BEGIN and END markers) into the UI form

Fetch the TCP certificate from a host on a specific port:

shell> ./getcert.pl --tcp --port 11999 {HOSTNAME}

Redirecting Output to a File

The output of the script can be redirected to a file using the > operator. For example:

shell> ./getcert.pl --api {HOSTNAME} > cert.txt

This will save the certificate content into cert.txt without any additional verbose output.