-
I got a list of ip addresses from 'api.push.apple.com' So I wrote the code like below.
but this code throws SSLHandshakeException.
How to use IP address? |
Beta Was this translation helpful? Give feedback.
Answered by
jchambers
Sep 17, 2021
Replies: 1 comment 2 replies
-
Generally speaking, you can't. While it might be technically possible to hack things such that you'll wind up with code that "works," it would be brittle and involve some significant security compromises. There are a few issues at play here:
Can you say more about why you want to do this? Why not just connect to |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
keepbang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Generally speaking, you can't.
While it might be technically possible to hack things such that you'll wind up with code that "works," it would be brittle and involve some significant security compromises. There are a few issues at play here:
subject=/CN=api.push.apple.com/OU=management:idms.group.887777/O=Apple Inc./ST=California/C=US
, which means clients should only trust it for api.push.apple.com; if you're connecting by IP, clients will check to see if the certificate's subject explicitly names that IP (which i…