gyp: build openssl-cli tool and use it in tests

fix #6663

/cc @tjfontaine