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 ] [ --base64, -b ] [ --help, -h ] [ --port, -p ] [ --quiet, -q ] [ --tcp, -t ]
Where:
Table 7.2. getcert.pl Options
| Option | Description |
|---|---|
--api, -a | Use this option to fetch the Manager API certificate on the default port 8090 |
-b, --base64 | Output the certificate encoded in base64. |
--help, -h | Use this option to display the help message. |
--port, -p | Use this option to specify the port - requires either `--api` or `--tcp` argument. |
--quiet, -q | Use this option to suppress verbose output and display only the certificate content. |
--tcp, -t | Use 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 formFetch 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.
Fetch base64 encoded API certificate from a host for a kubernetes values.yaml file:
shell> ./getcert.pl --api db1.continuent.com --base64
Fetching API certificate from db1.continuent.com:8090 ...
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURKekNDQWcrZ0F3SUJBZ0l
FS0VUclZUQU5CZ2txaGtpRzl3MEJBUXNGQURCRU1Rc3dDUVlEVlFRR0V3SlYKVX
... rest of base64 certificate content ...
Please copy this API certificate encoded in base64 into the values.yaml configuration file