Skip to main content

I am attempting to import a new VPP token that I have downloaded from Apple business manager. Every time I try to do this, I get an error saying "The file received was not valid". I have tired using a different web browser. I have rebooted Jamf Pro, and I rebooted the entire Ubuntu server VM. The Jamf Pro server log does show an error at the time I attempted to import the token. I have an open case with Jamf for this, but if anyone knows how to solve this, that would be wonderful 😊

Maybe it does not like the two dots in the filename. Try renaming to remove just one dot.


@chris.hansen Good idea, but that did not solve the issue. Thanks for your help! None of my other Jamf Pro servers need a VPP renewal, so I haven't tried this on another server.


I'm also getting this with my ADE token upload today. Renaming the file did not resolve it, but after I downloaded the Public Key from ASM and reuploaded to jamf, I was able to upload the ADE token successfully.


Jamf support asked me to try importing using a private browser window. That did it for me.


I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


Thanks - this worked for me today as well.


I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


Worked for me too, cheers.


Downloading our JSS ADE Public key from Jamf, uploading it to ASM and then re-downloading the server token is what was needed for us. A private browser wasn't necessary in our case.


Worked for me as well. Thank you!


I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


This fixed it for ours as well, thank you.


I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


This was the solution we are really looking for. Thanks.

That private browser didn't work much for me.


I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


Someone should really change the "solution" on this post as this downloading the public key process is what really works.

(Hello future me who finds this in November of 2023!)


I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


Life saver, thank you
This worked for me


Had this happen to me again today. Don't download a new public key unless you have to - it will invalidate the old one and you'll have to upload it to Apple School/Business before getting the new Token from there. 

Jamf really could have updated the error message by now. 


I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.


Yep. This needs to be marked as the solution...not using a private browsing window...

  1. Jamf
    1. In your Jamf Pro server, go to Settings > Global > Automated Device Enrollment
    2. Click "Public Key"
  2. Apple
    1. Log in to ASM/ABM
    2. Click your account in the lower left, then Preferences
    3. Select MDM server being updated
    4. Edit the MDM server
    5. Upload New (under MDM Server Settings/Upload Public Key)
    6. Upload the public key you just downloaded from Jamf
    7. Download the token for that MDM server
  3. Jamf
    1. In Settings > Global > Automated Device Enrollment, click on the MDM serving being updated
    2. Click "Upload Server Token File" and select the token just downloaded from Apple

That should do it.


Yep. This needs to be marked as the solution...not using a private browsing window...

  1. Jamf
    1. In your Jamf Pro server, go to Settings > Global > Automated Device Enrollment
    2. Click "Public Key"
  2. Apple
    1. Log in to ASM/ABM
    2. Click your account in the lower left, then Preferences
    3. Select MDM server being updated
    4. Edit the MDM server
    5. Upload New (under MDM Server Settings/Upload Public Key)
    6. Upload the public key you just downloaded from Jamf
    7. Download the token for that MDM server
  3. Jamf
    1. In Settings > Global > Automated Device Enrollment, click on the MDM serving being updated
    2. Click "Upload Server Token File" and select the token just downloaded from Apple

That should do it.


Thank you!!!! :D


Thank you!!!! :D


Happy to help! 🙌


See the more popular solution in a post by jkosowski  half way down the page


See the more popular solution in a post by jkosowski  half way down the page


I at least managed to get support to mark the other answer from tech2020 as an additional solution. It wasn’t at first…


Yep. This needs to be marked as the solution...not using a private browsing window...

  1. Jamf
    1. In your Jamf Pro server, go to Settings > Global > Automated Device Enrollment
    2. Click "Public Key"
  2. Apple
    1. Log in to ASM/ABM
    2. Click your account in the lower left, then Preferences
    3. Select MDM server being updated
    4. Edit the MDM server
    5. Upload New (under MDM Server Settings/Upload Public Key)
    6. Upload the public key you just downloaded from Jamf
    7. Download the token for that MDM server
  3. Jamf
    1. In Settings > Global > Automated Device Enrollment, click on the MDM serving being updated
    2. Click "Upload Server Token File" and select the token just downloaded from Apple

That should do it.


Followed these steps in July 2024- success!


I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.

This should be the answer. Uploaded public key to Apple Business Manager, downloaded a new token from Apple Business Manager after saving, and then JAMF took my .p7m token file properly. Thank you!🙏


I encountered this error today. Downloading our JSS DEP Public key, Uploading it to Apple School Manager, Downloading a new DEP Token from Apple School Manager, Uploading it our JSS DEP resolved it.

This should be the answer. Uploaded public key to Apple Business Manager, downloaded a new token from Apple Business Manager after saving, and then JAMF took my .p7m token file properly. Thank you!🙏

Thank you for this feedback! I have marked this as the best answer!


Yes, this solution worked for me also! I was starting to stress out as the clock to expiration was looming closer and closer.


Reply