Update to use Security.framework over deprecated openssl

Core Foundation implementation adapted from updated Cocoa version.