我正在尝试通过Safari浏览器阅读iPhone UDID,以下地址是一本如何使其成为hapeen的手册。
我认为我应该使用某种PHP,但是他们描述的语言不是PHP。
这是其中一个代码。
world.mount_proc("/enroll") { |req, res|
HTTPAuth.basic_auth(req, res, "realm") {|user, password|
user == 'apple' && password == 'apple'
}
res['Content-Type'] = "application/x-apple-aspen-config"
configuration = profile_service_payload(req, "signed-auth-token")
signed_profile = OpenSSL::PKCS7.sign(@@ssl_cert, @@ssl_key,
configuration, [], OpenSSL::PKCS7::BINARY)
res.body = signed_profile.to_der
}
这是什么语言?
答案 0 :(得分:-1)
您无法从Safari中读取UDID。
您正在查看的代码是用Ruby编写的。但是,它是iPhone配置文件服务器的一部分,而不是普通的Web应用程序 - 它只能作为企业iOS部署过程的一部分使用。