Use the Apple APIs to accomplish the same as I did using the OpenSSL API