Mountain Lion Secure Transport SSLHandshake returns errDecryptionFail after Change Cipher Spec <p>On Mountain Lion, running some SSL code that works on Leopard - using the native Secure Transport Framework - the server-side SSLHandshake call fails with errDecryptionFail.</p> <p>Looking at a wireshark trace, the handshake proceeds normally until the client sents a Change Cipher Spec and Encrypted Handshake Message. In response the server closes the connection and returns errDecryptionFail.</p> <p>The apple documentation states:</p> <p>"errSSLDecryptionFail –9845<br> Decryption failed. Among other causes, this may be caused by invalid data coming from the remote host, a damaged crypto key, or insufficient permission to use a key that is stored in the keychain."</p> <p>Has anyone seen similar behaviour or could shed some light on what the "other causes" might be?</p> <p>Thanks,</p> <p>Richard.</p>