New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connecting to https endpoint and getting: Hostname/IP doesn't match certificate's altnames #1777
Comments
What is the exact URL of your request |
I am getting this also. I am using a self signed cert and I don't want to do hostname checking. I have this in my requests
How do you set ignoreHostname? |
Have you tried setting the rejectUnauthorized variable to false?
|
It would be nice if |
Doesn't |
This stuff is horrible |
You have to match server certification's |
Why is that the case? Why does the client care about it's own hostname existing in the servers certificate? This is about the authentication of the server. Thanks |
FYI I got this error while I was forwarding requests, I used |
I believe I am hitting the same issue. I get the following error while using node 6.10.3 and request 2.88: Error: Hostname/IP doesn't match certificate's altnames: "Host: https. is not in the cert's altnames: I tracked this down to the node tls.js code. Somehow, "https." is being passed as the hostname by request down to node. If I set rejectUnauthorized to false, my code works. So I am passing in the correct hostname in the url. |
I believe this can be mitigated by using the api key provided by the target domain. |
my problem solved . i have forget modify req.header and change host . |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
I'm trying to connect to an external https REST service on heroku from my localhost with the following code:
I get the following error in the callback:
Hostname/IP doesn't match certificate's altnames: "Host: localhost. is not in the cert's altnames: DNS:.herokuapp.com, DNS:herokuapp.com"
Host: localhost. is not in the cert's altnames: DNS:.herokuapp.com, DNS:herokuapp.com
if I connect to the same service installed locally everything works correctly, so it should be related with https.
Any help?
The text was updated successfully, but these errors were encountered: