Proxy Configuration
The CipherTrust Manager allows you to set up HTTP proxy values through the Command Line Interface (CLI). CCKM uses this proxy for its outbound traffic to communicate with the external network.
Configuring Proxies
The following operations can be performed:
Add proxies
Get/list proxies
Delete proxies
Note
• If a proxy host is added using the proxy hostname, then IP mapping is required in the DNS.
• A system restart is required after adding a new proxy or changing proxy settings.
• For CCKM, configure an HTTPS proxy.
Adding Proxies
To add a proxy, run:
Syntax
ksctl proxy add --http-proxy <HTTP-proxy-address> --https-proxy <HTTPS-proxy-address> --no-proxy <List-of-noproxy-addresses>
Example Request 1
ksctl proxy add --http-proxy http://dummyproxy:3000 --https-proxy https://dummyproxy:3000 --no-proxy http://dummynoproxy.com,http://dummynoproxy2.com
Example Response 1
{
"http_proxy": "https://dummyproxy:3000",
"https_proxy": "https://dummyproxy:3000",
"no_proxy":
[
"http://dummynoproxy.com",
"http://dummynoproxy2.com"
]
}
Example Request 2
ksctl proxy add --http-proxy http://username:password@dummyproxy:3000 --https-proxy https://username:password@dummyproxy:3000 --no-proxy http://dummynoproxy.com,http://dummynoproxy2.com
Example Response 2
{
"http_proxy": "https://username:password@dummyproxy:3000",
"https_proxy": "https://username:password@dummyproxy:3000",
"no_proxy":
[
"http://dummynoproxy.com",
"http://dummynoproxy2.com"
]
}
Getting List of Proxies
To get a list of proxies, run:
Syntax
ksctl proxy list
Example Request
ksctl proxy list
Example Response
{
"http_proxy": "https://testproxy.com",
"https_proxy": "https://testproxy.com",
"no_proxy":
[
"http://testnoproxy.com",
"http://testnoproxy2.com"
]
}
Deleting Proxies
To delete proxy configurations, run:
Syntax
ksctl proxy delete
Example Request
ksctl proxy delete
No response is displayed if the proxy is deleted successfully.