project-imas / mdm-server

Sample iOS MDM server
601 stars 150 forks source link

vendor.p12 bad? #10

Closed horsley closed 10 years ago

horsley commented 10 years ago

Hi, I follow your instruction and stuck at the step to run Test.java to make the plist_encoded. It always throw an exception as below

capture.png

thrasr commented 10 years ago

It looks like a problem with your PEM password on line 95 of Test.java. The PEM password is the one used when running make_certs.sh. If your password is foo, then line 95 should look like this:

String password = "foo";//Change to your password

Please let me know if that helps!

horsley commented 10 years ago

I have replaced the password but got the same error

thrasr commented 10 years ago

Hmmmm. Can you post the results of "ls -l" from vendor-signing/softhinker/com?

It looks like the vendor.p12 wasn't created properly. I would suggest doing the make_certs script again and see if generating a new one fixes it. If not, then I'd have to take a look at the vendor.p12 file, but it contains some semi-sensitive data if I remember right. Be careful about posting it anywhere - definitely redact any hex, passwords, or unique identifiers before you post it.

thrasr commented 10 years ago

It sounds like you've gotten past this issue based on your next issue. I'm going to go ahead and close this one. Feel free to open it if its still a problem.

thrasr commented 9 years ago

@horsley

Someone else has being seeing your issue with running Test.java through vendor_signing.sh. Do you remember what you did to get past this issue?

horsley commented 9 years ago

@thrasr I use another project which is a python script that doing the same thing of this java code. https://github.com/grinich/mdmvendorsign