I believe the answer you're looking for is a library called Secure Transport (on mac). This is responsible for the cryptographic functions when decrypting the signed certificate.
You can reference <SecureTransport.h> on your mac!