I need to make some code to talk to a SOAP web service. Unfortunately I’m unable to get a connection to the service as it requires a SSL connection encrypted with a special certificate. I’ve been given a pk12 certificate which when installed into my keychain allows me to access the SOAP service manually via Safari, but I’m unable to get a connection from the Cocoa web services stuff 🙁 Does anybody have any ideas on what I might have to do to get this to work?
Share
I’ve hit similar problems. Is this a self-signed certificate? If so, you may find all you need to do is alter the trust settings on this certificate.
There is another workaround, where you say that this site should ignore trust settings, but this leaves you open to man-in-the-middle attacks. There is another thread on SO about this topic:
Objective-C/Cocoa How do I accept a bad server certificate?