Hello,
I am currently working on a application, consuming the Apple MDM Api.
In order to be able to use this API, I need to authorize using data from a decrypted server token (found in the corresponding server on https://deploy.apple.com).
So far this is all good.
Steps we managed to do so far:
1. Create Public/Private key
2. Added our server to https://deploy.apple.com in combination with our public key.
3. Generated and downloaded the token that gets automatically generated.
4. Decrypted that token using the private key (for the correct information in order to consume the API)
Steps that need to be done:
1. Install the Generated token on the Apple Server's DEP (Local Apple Server)
The Problem:
When we go to the Local Apple Server's DEP and try to enable the DEP, an already existing public key is already installed there.
Since we used a different Public/Private key to generate the token, our Local Apple Server's DEP tells us that the Token is invalid.
We are kind of stuck here.
How do we upload the token generated by our own private/public key?
Or decrypt the one that gets automatically generated? (This only gives a public key, no private)
Note:
The documentation tells us that we can use a unencrypted token as well. We have tried to install the unencrypted one in our server, but this gives us the same result (unable to install it).