I have following problem, I installed iPhone Configuration Utility tool on my mac, then I tested some Configuration profiles, I installed/removed them - everything was perfect, then I unfortunately delete some certificates from my keychain (I believe they were related to this tool), after this I can't neither remove nor install any Configuration profile.
I tried to reinstall Utility tool but this did not help.
Please share ideas how to make it works again
You need the Apple WWDR Intermediate Certificate installed on that machine.
Related
I can't install configuration profiles with the iPhone Configuration Utility on iPads etc for enterprise deployment. I can still however install apps. Problem is only with the configuration profiles. The Install button appears but it just doesn't do the install. This was fine before Lion. And I am using iPhone Configuration Utility 3.4. I have enabled root user as discussed in previous post, but when I log in again, I can't install profiles.
Apple Enterprise Support just figured this out for me.
Clean install of app.
Go to user directory/Library/preferences/iPhoneConfigurationUtility
go to preferences associated with iPhoneConfigurationUtility com.apple.iPhoneConfigurationUtility etc.
You will see plists.
Delete them.
Restart or reinstall.
Fixed.
Since updating to Lion I can't install configuration profiles with the iPhone Configuration Utility on iPads etc for enterprise deployment. I can still however install apps. Problem is only with the configuration profiles. The Install button appears but it just doesn't do the install. This was fine before Lion. And I am using iPhone Configuration Utility 3.4.
Apple Enterprise Support just figured this out for me.
Clean install of app.
Go to user directory/Library/preferences/iPhoneConfigurationUtility
go to preferences associated with iPhoneConfigurationUtility com.apple.iPhoneConfigurationUtility etc.
You will see plists.
Delete them.
Restart or reinstall.
Fixed.
I faced with similar problem when had tried to instal profile to my iPhone. But your question helped me find a solution, because you mention it has worked before Lion upgrade and I found that is access rights issue in Lion.
The workaround is:
Enable root account following by this instruction: http://support.apple.com/kb/ht1528
Login as root
Start iPhone Configuration Utility and enjoy! It would works fine.
And I suggest turn off root account when you're done.
I have iOS Developer Program membership for which i paid $99. I have installed that certificate in one system, and I'm able to run my application on my real device.
Is it possible to install this certificate on my another system, such that I can run my application on another real device? When I try to install the same certificate on another system, I'm not able to get it working.
Read Submitting iPhone Apps To The Apple App Store – A Step by Step Guide—in particular, the last paragraph, "Managing Your Digital Identities":
Also read: iOS Development Workflow Guide: Managing Devices and Digital Identities
You can definitely install the certificate on other systems. Please tell us the error message(s) you are getting.
Please make sure that you are exporting your certificates correctly and importing them on other system with the correct password.
Hope this helps,
Thanks,
Madhup
You have two ways to install the App in to device.
One is: you can add the new device UDID to the provisioning profile and you can run through your system
If you want to run from other system then follow the 2nd one
2nd is: You have to create a .p12 certificate from you systems keychain.
Goto -> Application -> Utilities -> KeyChains.
right click on your certificate and click export, enter some password(for security reasons). Then it will create a .p12 certificate.
You have to install this certificate in the other system by giving the specific password that you have give while creating. Then those will be installed in the other system.
Thats it. Then follow the first step, and enjoy by installing app into other device.
Regards,
Satya
I had everything working fine on my macbook (keychain, certificates, profiles …etc) for some reason I lost everything on my macbook including the backup of my certificates that I should use in the keychain assistant, currently I am working on installing the latest version of mac os and iphone sdk and xcode in order to develop for iphone 4. But I don’t know what should I do to restore my settings and certificates or did I lose it all or what ? I am very confused so please advise.
i even started from sctarch and submit new certificate but with no luck
Thanks for help
If you can't find a backup of your certificate, you should delete your old one on the portal, and follow the instructions to create a new development certificate.
After that you will have to edit and regenerate all of you development profiles, as they are tied to your certificate... just edit, select your new certificate, save and download after the portal generates the new certificate. To avoid confusion you should probably remove everything from ~/Library/Device/Provisioning Profiles
If you are sure you installed it correctly, do a build clean all and rebuild
I have a self-signed certificate at the endpoint of my API. I'm trying to test some things using the simulator but am getting "untrusted server certificate".
I have tried to use safari on the simulator to download the .crt file, but that doesn't seem to work.
Where does iPhone Simulator get its keychain from? How can I add a trusted certificate so my application will work?
I got it to work by creating a CA and then adding a CA certificate using the iPhone provisioning tool. Then I was able to have a certificate signed by that CA certificate on the API server and the NSConnection just worked. I was not able to get it to work using a self-signed certificate for some reason. I need to re-attempt this using the provisioning software.
My real question is how do I get this to work on the simulator? I would think that the simulator uses the keychain of the actual computer.
Simply drag & drop your .cer Files into your running Simulator window. You'll see Safari flashing and then the import dialog for your Certificate (or Certificate Authority)...
Working for iOS 7 Simulator (and i Think did work for iOS 6 too).
For those who find that the dragging and dropping of the certificate on the Simulator isn't working, there was a recent change that adds an extra step.
The Simulator must be explicitly told to trust the root CA. Do this by going to:
iOS Settings > General > About > Certificate Trust Settings > "Enable Full Trust for Root Certificate" for your particular certificate
See the full answer here:
I had this same issue for months and today I FINALLY solved it with:
ADVTrustStore
You are going to want to use a project called ADVTrustStore from github. It does some fancy magic but it will correctly install certificates into your root trust-store on the simulator.
Steps to install a custom cert
# Clone the repo
git clone https://github.com/ADVTOOLS/ADVTrustStore.git
# Enter the repo directory
cd ADVTrustStore/
# Copy your .crt file
cp somewhere/something.crt my.crt
# conver to a .pem file
openssl x509 -in my.crt -out my.pem -outform PEM
# Install the pem in the simulators
./iosCertTrustManager.py -a my.pem
Using this process I was able to get GoogleStreetView images to render correctly while behind a corporate firewall using SSL resigning with self-signed certificates
Background
I was using CharlesProxy and i noticed it was correctly installing certificates into the Simulator but they did not show up in the Settings - Profiles section. Then after some searching I discovered this tool. There are probably a few other tools out there but in my case the drag-and-drop never worked correctly for all cases. Safari would be fine but not my applications.
For anyone use OS X Catalina, please check this : https://forums.developer.apple.com/thread/124056.
Catalina is currently blocking access to Desktop, Documents and Downloads folder.
I moved certificate files to Shared folder and drag and drop the files to simulator from there.
Take a look at the shell script Charles uses to install their self signed cert into the simulator's keychain. http://www.charlesproxy.com/documentation/faqs/ssl-connections-from-within-iphone-applications/
See also:
iPhone TrustStore CA certificates
http://redgreenrefactor.eu/blog/testing-https-on-iphone-simulator/
It looks like installing your own certificate in the simulator may require installing it on a device via Safari and then copying the resulting row from the device's TrustStore.sqlite3 into the simulator's.
Dragging and drop used to work but it didn't work on XCode 12 for me. What worked for me was opening Safari browser on Simulator and then typing the file URL for the .crt certificate file.
Ex.
file:///Users/[folder_path]/[certificate.crt]
After that you have to goto Simulator Settings and install the certificate by navigating into General > Profiles section.
For IOS14, after the dragging, you need go to:
General -> Profile -> select you profile -> install
and then:
General -> About -> Certificate Trust Settings -> "Enable Full Trust for Root Certificate" for your particular certificate
see also https://developer.apple.com/library/archive/qa/qa1948/_index.html
Using iPhone Backup Extractor, I copied my iPhone's TrustStore.sqlite3 into ~/Library/Application Support/iPhone Simulator/6.0/Library/Keychains, overwriting the existing file. I tried to only insert a single row with the following sqlite, but I couldn't get it working.
sqlite3 ~/backup/iOS\ Files/TrustStore.sqlite3
sqlite3>.mode insert
sqlite3>.output working.sql
sqlite3>select * from tsettings;
sqlite3>.quit
Now, working.sql has the entire contents of the tsettings table (in my case, 1 row).
sqlite3 ~/Library/Application\ Support/iPhone\ Simulator/6.0/Library/Keychains/TrustStore.sqlite3
sqlite3>INSERT INTO tsettings VALUES(X'...
sqlite3>.quit
Again, the above sqlite commands didn't work for me, but might be a good starting point for someone else. Copying the entire TrustStore.sqlite3 from the backup into the simulator worked just fine.
Take a look at the iostrust Ruby gem: http://github.com/yageek/iostrust
When I started I couldn't get "Enable Full Trust for Root Certificate" to show up. I was using the certs I generated for nginx with openssl.
What worked was exporting the development cert from Keychain Access and downloading that with Safari in the simulator. Then the "Enable Full Trust for Root Certificate" showed up and I was able to get my application working.
Also, like people above have said dragging and dropping the cert on to the simulator doesn't work anymore. You can download the cert with Safari.