ios - Way to install mdm certificates programmatically in app -


this may sound bit dodge, im working on parental app/browser lockdown app, , use of mdm service functionality need, want users able control mdm services childs device through website.

i have working, except @ moment im not sure if there way install certificates needed programmatically in app. can manually through safari, detracts apps experience.

i want mimic functionality safari gives when downloading these certs in app.

has tried before?

alternatively, there way uiwebview respond mime-type of application/x-x509-ca-cert , application/x-apple-aspen-config ?

my knowledge of outdated because tried on ios 5.x. so, aware.

at moment, weren't allowed install certificates application (so uiwebview application/x-x509-ca-cert didn't work). believe app should have special entitlement (which system apps can have) install certificate ios' trusted certs store.

i believe same true configuration profile installation via uiwebview. way, here old discussion it: https://groups.google.com/forum/#!topic/iphonesdkdevelopment/8qdpe1jub2g

however, think should try now. things have changed.

now, regarding installation of configuration profiles through safari. not sure whether doing manual or semi-manual, in case if doing manual, here code allow partially automate it.

nsurl* url = [nsurl urlwithstring: @"<urlofpagewhichhasconfigprofile>"]; [[uiapplication sharedapplication openurl: url]; 

this switch safari, switch preferences after , after user approval safari. know, it's not perfect.


Comments

Popular posts from this blog

assembly - 8086 TASM: Illegal Indexing Mode -

Java, LWJGL, OpenGL 1.1, decoding BufferedImage to Bytebuffer and binding to OpenGL across classes -

javascript - addthis share facebook and google+ url -