Skip to content
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

x509: cannot validate certificate for 17.110.227.92 because it doesn't contain any IP SANs #28

Open
alecthomas opened this issue Jan 7, 2015 · 4 comments

Comments

@alecthomas
Copy link

Hi there,

Trying to use this library against the production APNS servers results in the above error (Go 1.4, OSX Yosemite). Digging into it, this appears to be a possibly overly-aggressive check by crypto/tls for IP addresses in the server certificate. openssl s_client works fine with the same inputs.

I'm not sure what the solution is, but a hack to work around it is to enable InsecureSkipVerify. Needless to say, this is not ideal.

Have you (or anyone else) seen this?

Alec

@freeeve
Copy link

freeeve commented Jan 7, 2015

+1. I'm still in dev sandbox mode but I just added InsecureSkipVerify myself to get it to work.

@ghost
Copy link

ghost commented Jan 17, 2015

Just got a chance to check it out, confirmed as well on 1.4 OSX.

@ghost
Copy link

ghost commented Jan 25, 2015

Is this still happening for you all? I just sent a few notifications through successfully and can't seem to replicate the problem anymore.

Happy to investigate further, just let me know!

@CallMeRo
Copy link

I just get this problem again, the message is "x509: certificate signed by unknown authority (possibly because of "x509: invalid signature: ........")" . I test with ips[17.110.226.164 ,17.172.232.18 ,17.172.232.45 ],they don't work. I use go 1.6 on linux 2.6. With "enable InsecureSkipVerify" , it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants