---
title: Secure Transport Result Codes
framework: security
role: collectionGroup
role_heading: API Collection
path: security/secure-transport-result-codes
---

# Secure Transport Result Codes

Recognize result codes specific to the secure transport API.

## Discussion

Discussion Use the SecCopyErrorMessageString(_:_:) function to obtain a human readable string corresponding to these status codes. The functions of the Secure Transport API may also return the general codes listed in Security Framework Result Codes. Errors in the range of –9819 through –9840 are fatal errors that are detected by the peer.

## Topics

### App Transport Security result codes

- [errSSLATSViolation](security/errsslatsviolation.md)
- [errSSLATSMinimumVersionViolation](security/errsslatsminimumversionviolation.md)
- [errSSLATSCiphersuiteViolation](security/errsslatsciphersuiteviolation.md)
- [errSSLATSMinimumKeySizeViolation](security/errsslatsminimumkeysizeviolation.md)
- [errSSLATSLeafCertificateHashAlgorithmViolation](security/errsslatsleafcertificatehashalgorithmviolation.md)
- [errSSLATSCertificateHashAlgorithmViolation](security/errsslatscertificatehashalgorithmviolation.md)
- [errSSLATSCertificateTrustViolation](security/errsslatscertificatetrustviolation.md)

### Certificate issue result codes

- [errSSLBadCert](security/errsslbadcert.md)
- [errSSLBadCertificateStatusResponse](security/errsslbadcertificatestatusresponse.md)
- [errSSLCertExpired](security/errsslcertexpired.md)
- [errSSLCertNotYetValid](security/errsslcertnotyetvalid.md)
- [errSSLCertificateRequired](security/errsslcertificaterequired.md)
- [errSSLClientCertRequested](security/errsslclientcertrequested.md)
- [errSSLHostNameMismatch](security/errsslhostnamemismatch.md)
- [errSSLNoRootCert](security/errsslnorootcert.md)
- [errSSLPeerBadCert](security/errsslpeerbadcert.md)
- [errSSLPeerCertExpired](security/errsslpeercertexpired.md)
- [errSSLPeerCertRevoked](security/errsslpeercertrevoked.md)
- [errSSLPeerCertUnknown](security/errsslpeercertunknown.md)
- [errSSLPeerUnsupportedCert](security/errsslpeerunsupportedcert.md)
- [errSSLUnknownRootCert](security/errsslunknownrootcert.md)
- [errSSLXCertChainInvalid](security/errsslxcertchaininvalid.md)
- [errSSLPeerUnknownCA](security/errsslpeerunknownca.md)

### Connection status result codes

- [errSSLClientHelloReceived](security/errsslclienthelloreceived.md)
- [errSSLClosedAbort](security/errsslclosedabort.md)
- [errSSLClosedGraceful](security/errsslclosedgraceful.md)
- [errSSLClosedNoNotify](security/errsslclosednonotify.md)
- [errSSLConnectionRefused](security/errsslconnectionrefused.md)
- [errSSLPeerAuthCompleted](security/errsslpeerauthcompleted.md)
- [errSSLWouldBlock](security/errsslwouldblock.md)

### Cryptography result codes

- [errSSLCrypto](security/errsslcrypto.md)
- [errSSLDecryptionFail](security/errssldecryptionfail.md)
- [errSSLPeerDecryptError](security/errsslpeerdecrypterror.md)
- [errSSLPeerDecryptionFail](security/errsslpeerdecryptionfail.md)
- [errSSLWeakPeerEphemeralDHKey](security/errsslweakpeerephemeraldhkey.md)

### Other result codes

- [errSSLBadCipherSuite](security/errsslbadciphersuite.md)
- [errSSLBadConfiguration](security/errsslbadconfiguration.md)
- [errSSLBadRecordMac](security/errsslbadrecordmac.md)
- [errSSLBufferOverflow](security/errsslbufferoverflow.md)
- [errSSLConfigurationFailed](security/errsslconfigurationfailed.md)
- [errSSLDecodeError](security/errssldecodeerror.md)
- [errSSLDecompressFail](security/errssldecompressfail.md)
- [errSSLFatalAlert](security/errsslfatalalert.md)
- [errSSLHandshakeFail](security/errsslhandshakefail.md)
- [errSSLIllegalParam](security/errsslillegalparam.md)
- [errSSLInappropriateFallback](security/errsslinappropriatefallback.md)
- [errSSLInternal](security/errsslinternal.md)
- [errSSLMissingExtension](security/errsslmissingextension.md)
- [errSSLModuleAttach](security/errsslmoduleattach.md)
- [errSSLNegotiation](security/errsslnegotiation.md)
- [errSSLNetworkTimeout](security/errsslnetworktimeout.md)
- [errSSLPeerAccessDenied](security/errsslpeeraccessdenied.md)
- [errSSLPeerBadRecordMac](security/errsslpeerbadrecordmac.md)
- [errSSLPeerDecodeError](security/errsslpeerdecodeerror.md)
- [errSSLPeerDecompressFail](security/errsslpeerdecompressfail.md)
- [errSSLPeerExportRestriction](security/errsslpeerexportrestriction.md)
- [errSSLPeerHandshakeFail](security/errsslpeerhandshakefail.md)
- [errSSLPeerInsufficientSecurity](security/errsslpeerinsufficientsecurity.md)
- [errSSLPeerInternalError](security/errsslpeerinternalerror.md)
- [errSSLPeerNoRenegotiation](security/errsslpeernorenegotiation.md)
- [errSSLPeerProtocolVersion](security/errsslpeerprotocolversion.md)
- [errSSLPeerRecordOverflow](security/errsslpeerrecordoverflow.md)
- [errSSLPeerUnexpectedMsg](security/errsslpeerunexpectedmsg.md)
- [errSSLPeerUserCancelled](security/errsslpeerusercancelled.md)
- [errSSLProtocol](security/errsslprotocol.md)
- [errSSLRecordOverflow](security/errsslrecordoverflow.md)
- [errSSLSessionNotFound](security/errsslsessionnotfound.md)
- [errSSLTransportReset](security/errssltransportreset.md)
- [errSSLUnexpectedMessage](security/errsslunexpectedmessage.md)
- [errSSLUnexpectedRecord](security/errsslunexpectedrecord.md)
- [errSSLUnknownPSKIdentity](security/errsslunknownpskidentity.md)
- [errSSLUnrecognizedName](security/errsslunrecognizedname.md)
- [errSSLUnsupportedExtension](security/errsslunsupportedextension.md)
