The 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 [options] {HOSTNAME|HOSTNAME:PORT}
Where:
| Option | Description | Version |
|---|---|---|
--apiAliases: -a | Use this option to fetch the Manager API certificate on the default port 8090 | |
--base64Aliases: -b | Output the certificate encoded in base64. | 8.0.2 |
--helpAliases: -h | Use this option to display the help message | |
--portAliases: -p | Use this option to specify the port - requires either --api or --tcp argument. | |
--tcpAliases: -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 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.
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