https: using https client instead of curl for test-https-foafssl

This addresses issue #6647

The curl binary that is executed may not support the features required for this test (in this case support for a client certificate) - it is dependent on how curl was built. By using node's https agent instead of execute the curl command we can avoid this external dependency and the variability.