Certificate Name Mismatch Callback
When the certificate name check callback fails, the HTTPS package calls the certificate name mismatch callback. The default certificate name mismatch callback throws an exception of type RWHttpsCertificateNameMismatch. In most cases, this is unacceptable because it stops the connection.
You should almost always define your own certificate name mismatch callback. For some applications, terminating the program may be appropriate; for others, it might be better to display a dialog box that allows the user to ignore the situation. For information about defining a callback, see Supplying Your Own Callbacks.