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

Not working on iOS 12 #5

Closed
pwlkania opened this issue Sep 25, 2018 · 9 comments
Closed

Not working on iOS 12 #5

pwlkania opened this issue Sep 25, 2018 · 9 comments

Comments

@pwlkania
Copy link

It's not working on iOS 12. It seems to be a problem with ATS (App Transport Security settings). Added flag 'allows arbitrary loads' on true, but it didn't help.

@shaojiankui
Copy link
Owner

profile use https url

@pwlkania
Copy link
Author

Didn't help, getting error

An ssl error has occurred and a secure connection to the server cannot be made.

(ATS flag in plist is still there)

@zhujieshan
Copy link

+1

@zhujieshan
Copy link

@pwlkania How did you solve it?

@zhujieshan
Copy link

原来是服务器配置的证书不对,苹果要求是TLS1.2,服务端配置是TLS1.0

@pwlkania
Copy link
Author

Not really. I used this https://github.com/hunk/get-UDID

However on iOS 12 additionally you have to sign the .mobileconfig file. I achieved it by using one of my valid distribution cert from apple developer account.
You can check available certs by entering this command in terminal:

/usr/bin/security find-identity -p codesigning -v

and later sing the device.mobileconfig file

/usr/bin/security cms -S -N "Mac Developer Application" -i /path/to/your.mobileconfig -o /path/to/your/signed/output.mobileconfig

(ref.: https://osxdominion.wordpress.com/2015/04/21/signing-mobileconfig-profiles-with-keychain-certificates/)

once you done it, use signed device.mobileconfig instead of the old one.

One more thing, if you want to use your own server (by changing URL in device.mobileconfig) make sure you have valid ssl certificate (looks like self-signed is not an option).

Good luck & have fun maybe you will figure out how to fix this repo

@pwlkania pwlkania reopened this Sep 27, 2018
@lizhaojie001
Copy link

原来是服务器配置的证书不对,苹果要求是TLS1.2,服务端配置是TLS1.0

是服务器配置的证书不对吗,但是我们要是本地的话是不是有问题

@shaojiankui
Copy link
Owner

https证书不是必须的,后端的重定向如果不正确也会提示ats错误。重定向一定要使用301重定向,有些重定向默认是302重定向,
response.setStatus(301); //301之后iOS设备会自动打开safari浏览器
response.setHeader("Location", "http://192.168.1.106:8080/udid.jsp?UDID="+udid);

@lizhaojie001
Copy link

我把本地的localhost设置为127.0.0.1可以了.

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

4 participants