Code Monkey home page Code Monkey logo

Comments (9)

lizhaojie001 avatar lizhaojie001 commented on July 29, 2024 1

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

from ios-udid-safari.

shaojiankui avatar shaojiankui commented on July 29, 2024

profile use https url

from ios-udid-safari.

pwlkania avatar pwlkania commented on July 29, 2024

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)

from ios-udid-safari.

zhujieshan avatar zhujieshan commented on July 29, 2024

+1

from ios-udid-safari.

zhujieshan avatar zhujieshan commented on July 29, 2024

@pwlkania How did you solve it?

from ios-udid-safari.

zhujieshan avatar zhujieshan commented on July 29, 2024

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

from ios-udid-safari.

pwlkania avatar pwlkania commented on July 29, 2024

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

from ios-udid-safari.

lizhaojie001 avatar lizhaojie001 commented on July 29, 2024

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

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

from ios-udid-safari.

shaojiankui avatar shaojiankui commented on July 29, 2024

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

from ios-udid-safari.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.