Before following the below steps, read the information in the 'Additional Info' section.
There are two options to update the PTAgent SSL certificate:
A customized SSL certificate includes the following files:
Note: this is an example, and the filenames may be different.
Steps
/etc/init.d/DellPTAgent stop
[root@c4-esx01:/opt/dell/DellPTAgent/secure] ls -l total 12 -r-------- 1 root root 424 Apr 7 01:30 pta_dhparm.pem -r-------- 1 root root 1257 Apr 7 01:30 pta_server.crt -r-------- 1 root root 1704 Apr 7 01:30 pta_server.key
4. Update the PTAgent certificate parameter with the customized certificates in the PTAgent.config:
There are two options:
"certificate_store_path": { "description": "List of SSL certificates file path", "value": "/opt/dell/DellPTAgent/secure/server.crt,/opt/dell/DellPTAgent/secure/server.key,/opt/dell/DellPTAgent/secure/pta_dhparm.pem "defaultValue": "/opt/dell/DellPTAgent/secure/pta_server.crt,/opt/dell/DellPTAgent/secure/pta_server.key,/opt/dell/DellPTAgent/secure/pta_dhparm.pem },
Note: The server certificate should be at the end of the new server certificate file.
"certificate_store_path": { "description": "List of SSL certificates file path", "value": "/opt/dell/DellPTAgent/secure/new_server.crt,/opt/dell/DellPTAgent/secure/server.key,/opt/dell/DellPTAgent/secure/pta_dhparm.pem "defaultValue": "/opt/dell/DellPTAgent/secure/pta_server.crt,/opt/dell/DellPTAgent/secure/pta_server.key,/opt/dell/DellPTAgent/secure/pta_dhparm.pem },
"certificate_store_path": { "description": "List of SSL certificates file path", "value": "/opt/dell/DellPTAgent/secure/server.crt,/opt/dell/DellPTAgent/secure/server.key,/opt/dell/DellPTAgent/secure/pta_dhparm.pem "defaultValue": "/opt/dell/DellPTAgent/secure/pta_server.crt,/opt/dell/DellPTAgent/secure/pta_server.key,/opt/dell/DellPTAgent/secure/pta_dhparm.pem },
/etc/init.d/DellPTAgent start
/etc/init.d/DellPTAgent status esxcli network ip connection list | grep LISTEN | grep Dell The expected results should be same with below, DellPTAgent is running tcp 0 0 {ESXi_host_ipv4_address}/{ESXi_host_ipv6_address}:8086 0.0.0.0:0 LISTEN 3992948 newreno DellPTAgent
openssl s_client -connect {ESXi_host_ipv4_address}/{ESXi_host_ipv6_address}:8086
PTAgent configuration file brief introduction:
PowerTools agent run-time configurations are stored in the file that is named PTAgent.config which is found in the installation folder.
Configurations parameters are read-only upon start-up.
The PTAgent configuration file path on the ESXi host is:
/opt/dell/DellPTAgent/cfg/PTAgent.config
PTAgent configuration certificate parameter:
certificate_store_path | Full file-path of certificate files used in SSL hand-shake with REST clients, comma separated. |
The default PTAgent certificate example:
"certificate_store_path": { "description": "List of SSL certificates file path", "value": "/opt/dell/DellPTAgent/secure/pta_server.crt,/opt/dell/DellPTAgent/secure/pta_server.key,/opt/dell/DellPTAgent/secure/pta_dhparm.pem "defaultValue": "/opt/dell/DellPTAgent/secure/pta_server.crt,/opt/dell/DellPTAgent/secure/pta_server.key,/opt/dell/DellPTAgent/secure/pta_dhparm.pem },
[root@c1-esx01:/opt/dell/DellPTAgent/cfg] openssl s_client -connect {ESXi_IPv4|ESXi_IPv6}:8086
CONNECTED(00000003)
depth=0 C = US, ST = Texas, L = Round Rock, O = Dell EMC Inc, OU = Server Storage HCI, CN = dellemc.com
verify error:num=18:self signed certificate
verify return:1
depth=0 C = US, ST = Texas, L = Round Rock, O = Dell EMC Inc, OU = Server Storage HCI, CN = dellemc.com
verify return:1
---
Certificate chain
0 s:/C=US/ST=Texas/L=Round Rock/O=Dell EMC Inc/OU=Server Storage HCI/CN=dellemc.com
i:/C=US/ST=Texas/L=Round Rock/O=Dell EMC Inc/OU=Server Storage HCI/CN=dellemc.com
---