internal static extern OSStatus SecIdentityCopyCertificate(IntPtr identityRef, out IntPtr certificateRef);