Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't install devices through "my devices" web interface?

Each time I try to add a device to my lion server (on a mac mini) I get the error "The profile “Device Enrollment (com.apple.ota.media-server.local.bootstrap)” could not be installed due to an unexpected error." I have tried turning the profile manager on and off, and changing from a simple local network to a private network with VPN and back to a simple local network. No matter what I get this error on my macs, and I get an SCEP error at the end of the profile installation on an iOS device. Anybody have any ideas how I get this reset?

Mac mini, Mac OS X (10.7)

Posted on Jul 26, 2011 7:35 PM

Reply
24 replies

Jul 27, 2011 6:01 PM in response to bobbydmarriott

I'm having this problem also--can't enroll my laptop now. The log messages on the laptop make me think it doesn't like the self-signed intermediate certificate. If you run "tail -F /var/log/system.log" inside a Terminal.app window on the machine you're enrolling, you should see a bunch of lines scroll by when it fails. Buried in there is an obscure reference to "OSStatus error -67688". If you google that, you find out it means "An invalid signature was encountered."


The funny thing is, this same signature worked for me before on this same laptop. I simply made the mistake of removing it from the list of devices. What happened was I locked myself out of the laptop by unchecking my admin privilieges in Server.app (something System Preferences would never let you do!) so I had to reinstall it. So now this is a complete fresh clean install of lion on the laptop that's refusing to enroll...


So yeah, anyway, "me too."

Jul 27, 2011 6:21 PM in response to Community User

I can confirm that it IS the certificate causing this. The easiest and probably best way around it is purchasing a cheapo SSL certificate through somebody like comodo (I used their reseller namecheap for a lower price). Apply that certificate to your webserver. Also, be 100% sure that the domain you're registering with is exactly the one that you will be using for device enrollment. I purchased a wildcard certificate to get around that limitation, though it's significantly more expensive.


The free way to do this is by setting your phone to trust the certificate before you attempt to enroll. I've not done that manually on iOS but I know for Mac it's trivial.

Jul 27, 2011 7:06 PM in response to NeoNet Tim

I have an SSL certificate on order with Comodo. I am waiting for it to be verified. It will be worth a try once I have it. Is this really necessary for a local network? Or did this screwed up because I originally set it up as a private network, and then tried to go back to a local network, and something in the settings or configuration got stuck... (I know, a very technical term).

Jul 27, 2011 7:28 PM in response to NeoNet Tim

The free way to do this is by setting your phone to trust the certificate before you attempt to enroll. I've not done that manually on iOS but I know for Mac it's trivial.


I tried that, and this is on my laptop, not my iphone (I've given up on the iphone working without a paid cert).. I even went into Keychain Access.app and changed the trust settings for the cert to always trust, but enrollment is still failing.


I thought maybe DNS had something to do with it, but I've got that working now and still nothing...

Jul 28, 2011 4:52 AM in response to Thezez

I did. Didn't work.


Another symptom I saw last night. The server host name is screwed up. If I go to preferences - file sharing, the host name matches on the file sharing tab, but on the Remote Management tabs it is stuck on an the first private server name I gave the server. Changing host name through preferences or the server app won't correct this. I am close to doing a clean install. Very, very frustrating.

Jul 28, 2011 10:36 AM in response to Thezez

Yep, I have both the Trust Profile and the Settings For Everyone installed successfully. Still won't enroll. Pretty sure the hostname is correct. "changeip -checkhostname" is happy.

Jul 28, 2011 5:14 PM in response to bobbydmarriott

In my case I can install profiles on devices from Profile Manager page but I cannot enroll devices.


The certificate I download to enroll is reject by my MacBook Pro Lion: Says Invalid blablabla at the end.


Now I have done log research and I now exactly and understand why it doesn't work:


the scep_helper daemon is supposed to listen to port 1640 TCP (which you should forward to your server by the way, if you want to be able to enroll devices) and provide the requsting client the root CA that signed the certificate. In my case, it can't find the root CAT to provide the client with so it can finalize the cert validation process.


In my case, that's what I see in the log:


Jul 29 02:12:44 teknologism scep_helper[1638]: SCEP_HELPER: /SourceCache/RemoteDeviceManagement/RemoteDeviceManagement-701.70/scep_helper/m ain.m:727 'status = SCEPGetCACert(session, NULL, 0)' = -25300

Jul 29 02:12:44 teknologism scep_helper[1638]: SCEP_HELPER: /SourceCache/RemoteDeviceManagement/RemoteDeviceManagement-701.70/scep_helper/m ain.m:513 'SCEPGetCACert(session, NULL, 0)' = -25300

Jul 29 02:12:44 teknologism scep_helper[1638]: SCEP_HELPER: /SourceCache/RemoteDeviceManagement/RemoteDeviceManagement-701.70/scep_helper/m ain.m:819 'challenge = GetChallengeFromSCEP(password, guid, hostURL)' is NULL

Jul 29 02:12:44 teknologism ProfileManager[516]: Could not retrieve root certificate from open directory server.



No , as for the bad news: I have no idea on how to fix. Have dug into scep_helper, googled etc. Not a single clue on how to check it's configuration or even why it can't find the root CA. By the way everyhting else (I really mean everything, ical,cardav,web,wiki etc.) work great. And profile manager too, it's just the enroll thingy that doesn't work.

Jul 28, 2011 7:12 PM in response to bobbydmarriott

Ok... Got a little farther (or fixed somethng else I broke along the way......


I used sudo changeip -checkhostname to realize that my hostname and DNS Hostname were out of sync. Not sure when this happened, but it will stop you from being able to even get to the web application pages for my devices and profile manager. Getting them the two host names matched again got me back to being able use the pages.... but alas, still can't register devices.

Jul 28, 2011 7:23 PM in response to bobbydmarriott

And now a little farther. Downloaded System Admin tools for Lion 10.7. Under the DNS subtab under my server tab on the right hand column, I found that I had two irrelevant zones created from earlier configurations. Cleared those out, and it seems the server admin and server app are more responsive....


Unfortunately, still can't register a device....

Jul 28, 2011 7:35 PM in response to bobbydmarriott

Hmm, my DNS settings in Server Admin tools look good. And changeip -checkhostname is happy:


nyx$ sudo changeip -checkhostname

Password:


Primary address = 192.168.0.6


Current HostName = nyx.vpn.desert.net

DNS HostName = nyx.vpn.desert.net


The names match. There is nothing to change.

dirserv:success = "success"

nyx$



Here's what system.log has to say when I try to install the Device Management Identity Certificate:


Jul 28 19:21:35 nyx com.apple.DeviceManagement.SCEPHelper[1834]: 1834:error:2107106C:PKCS7 routines:PKCS7_signatureVerify:unable to find message digest:/SourceCache/OpenSSL098/OpenSSL098-41/src/crypto/pkcs7/pk7_doit.c:930:

Jul 28 19:21:35 nyx scep_helper[1834]: SCEP_HELPER: /SourceCache/RemoteDeviceManagement/RemoteDeviceManagement-701.70/scep_helper/m ain.m:518 'SCEPRequestChallengePassword(session, username, password, requestDict, &challenge)' = -67688

Jul 28 19:21:35 nyx scep_helper[1834]: SCEP_HELPER: /SourceCache/RemoteDeviceManagement/RemoteDeviceManagement-701.70/scep_helper/m ain.m:819 'challenge = GetChallengeFromSCEP(password, guid, hostURL)' is NULL

Jul 28 19:21:41 nyx com.apple.mdmclient.agent[43290]: 43290:error:2107106C:PKCS7 routines:PKCS7_signatureVerify:unable to find message digest:/SourceCache/OpenSSL098/OpenSSL098-41/src/crypto/pkcs7/pk7_doit.c:930:

Jul 28 19:21:41 nyx mdmclient[43290]: *** ERROR *** [Agent:501] <: [MDM_SCEP] Calling SCEPRequestCertSignature --> <NSOSStatusErrorDomain:-67688>

Jul 28 19:21:41 nyx mdmclient[43290]: *** ERROR *** [Agent:501] ExtractOTAIdentity ( <NSOSStatusErrorDomain:-67688>)

Jul 28 19:21:41 nyx mdmclient[43290]: *** ERROR *** [Agent:501] ProcessOTABootstrapPayload ( <NSOSStatusErrorDomain:-67688>)

Jul 28 19:21:41 nyx System Preferences[43275]: *** ERROR *** [CPInstallerUI:501] Profile installation (Device Enrollment (com.apple.ota.nyx.vpn.desert.net.bootstrap)) (<NSOSStatusErrorDomain:-67688> The operation couldn’t be completed. (OSStatus error -67688.)

UserInfo: {

CallStackSymbols = (

"0 mdmclient 0x000000010fa1cb19 mdmclient + 15129",

"1 mdmclient 0x000000010fa3b78b mdmclient + 141195",

"2 mdmclient 0x000000010fa26ce9 mdmclient + 56553",

"3 mdmclient 0x000000010fa32e1b mdmclient + 106011",

"4 mdmclient 0x000000010fa29ef9 mdmclient + 69369",

"5 mdmclient 0x000000010fa3315a mdmclient + 106842",

"6 mdmclient 0x000000010fa31119 mdmclient + 98585",

"7 libxpc.dylib 0x00007fff8cd7694a _xpc_connection_recv_message + 688",

"8 libxpc.dylib 0x00007fff8cd76ab7 _xpc_connection_recv_message + 1053",

"9 libxpc.dylib 0x00007fff8cd77387 _xpc_connection_wakeup_recv + 179",

"10 libxpc.dylib 0x00007fff8cd77257 _xpc_connection_wakeup2 + 1580",

"11 libxpc.dylib 0x00007fff8cd7746b _xpc_connection_wakeup + 116",

"12 libdispatch.dylib 0x00007fff983582f1 _dispatch_source_invoke + 614",

"13 libdispatch.dylib 0x00007fff98354fc7 _dispatch_queue_invoke + 71",

"14 libdispatch.dylib 0x00007fff98355124 _dispatch_queue_drain + 210",

"15 libdispatch.dylib 0x00007fff98354fb6 _dispatch_queue_invoke + 54",

"16 libdispatch.dylib 0x00007fff983547b0 _dispatch_worker_thread2 + 198",

"17 libsystem_c.dylib 0x00007fff96da63da _pthread_wqthread + 316",

"18 libsystem_c.dylib 0x00007fff96da7b85 start_wqthread + 13"

);

IsInternalError = 1;

})

Jul 29, 2011 3:51 PM in response to Community User

Seems like this is something simple related to a configuration issue of some sort. I was able to get it add devices initally right after install, but everything went south when I started tinkering with my computer name and hostname. That resulted in DNS Zone problems (fixed), and I suspect something else having to do with authentication that we haven't gotten around yet. There is no reason why I should need a SSL Certificate for an in-house media server controlling 3 home computers, 2 iPhones, and 2 iPads that isn't serving outside of the home network.

Jul 30, 2011 8:02 AM in response to bobbydmarriott

Another small update (probably more of a bump).


I manually added my iMac that I want to connect to the server as a "placeholder". Since then when I try to install the iMac it gets a little father and asks about the SCEP server and another configuration, but then fails again with the same message. Going to try to tinker with more of the manual settings in the "placeholder" profile and see if I can find something that helps. It does register that the iMac connected with the server, but it is clear that it is not complete.

Can't install devices through "my devices" web interface?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.