Fixed ssl bug with unsigned certs.