Installing and Using the CTE Signing Tool
To use this tool to gather signatures from other container images and then push them to CipherTrust Manager, complete the following steps:
-
Download a container image:
a. From a public repository, type:
./cte-sign --cdi --image=<image name> --tag=<image version>b. From a private repository, type:
./cte-sign --cdi --image=<image name with url> --tag=<image version> --repo-user=<repo username> --repo-password=<repo password> -
Get a list of signature set IDs from CipherTrust Manager, type:
./cte-sign --cm --signature-sets list --ip=<CM IP> --user=<CM username> --password=<CM password> --cm-domain=<CM Domain> -
Create a signature set to contain the IDs from the downloaded container, type:
./cte-sign --cm --signature-sets create --sigset-name=<signature-set-name> --ip=<CM IP> --user=<CM username> --password=<CM password> --cm-domain=<CM Domain> -
Send the signatures collected from the downloaded container image to CipherTrust Manager in a signature set ID, type:
./cte-sign --cm --signature-sets add-signatures --sigset-name=<signature-set-name> --path=<source-path> --ip=<CM IP> --user=<CM username> --password=<CM password> --cm-domain=<CM Domain> -
Cleanup and remove the image directory, type:
./cte-sign --cleanup
CLI Argument Definitions
| Argument | Definition |
|---|---|
| --image | Container image name/url. |
| --tag | Container image version. |
| --repo-user | Username for private repository access. |
| --repo-password | Password/AccessToken for the private repository. |
| --ip | CipherTrust Manager IP address. |
| --user | Username of CipherTrust Manager credential. |
| --password | Password of CipherTrust Manager credential. |
| --cm-domain | This argument is Optional. Provide this option only if an operation belongs to a specific domain other than the root domain. |
| --sigset-name | The signature set name where signatures will be contained. |
| --path | The binary path from the downloaded container image, for the files that need to be pushed to CipherTrust Manager. ex: /usr/bin |
| --cleanup | Delete the container image files and directories. |