I am trying to use NORDVPN servers for proxy. I can get it working if i use a socks client but i want to use the normal servers (if possible).
const getIpUrl = "https://api.ipify.org?format=json";
export const requestCurrentIp = () =>
axios.get(getIpUrl, {
httpsAgent: tunnel.httpsOverHttps({
proxy: {
host: vpn,
port: 89,
proxyAuth: `${username}:${password}`,
},
}),
});
When i do this, i get this message:
tunneling socket could not be established, cause=Hostname/IP does not match certificate's
altnames:
Host: api.ipify.org. is not in the cert's altnames: DNS:*.nordvpn.com, DNS:nordvpn.com