I resolved this finally by using the NODE_EXTRA_CA_CERTS system environment variable and making the variable value the path to my certificate chain PEM file. I restarted the agent machine after the change and tested this to confirm.