When you implemented the command to do the ssl handshake you could set a flag (like --no-check-certificate) to ignore the name mismatch error, in which case the connection is still encrypted, just not authenticated.
↧