我认为这是一个 bug,正如在 Disabling starttls or certificate verification does not work any more 中所描述的那样。
不过,你说你有一个有效的证书。所以我可能错了。