Error handling when using TLS

The following reason codes can be issued by IBM® MQ classes for .NET when connecting to a queue manager using TLS:
MQRC_SSL_NOT_ALLOWED
The SSLCipherSpec property was set, but bindings connect was used. Only client connect supports TLS.
MQRC_SSL_PEER_NAME_MISMATCH
The DN pattern specified in the SSLPeerName property did not match the DN presented by the queue manager.
MQRC_SSL_PEER_NAME_ERROR
The DN pattern specified in the SSLPeerName property was not valid.
[MQ 9.3.0 Jun 2022][MQ 9.3.0 Jun 2022]MQRC_KEY_REPOSITORY_ERROR
The location of the key repository is either not specified, not valid, or cannot be accessed.