SSL_connect returned=1 errno=0 peeraddr=162.243.189.2:443 state=error: certificate verify failed (Hostname mismatch)

Yes, you are right when turn it off. I just want to find the reason to make a PR if this is error in ruby library.

My settings are very simple, just try to upload images to S3 compatible storage.

  DISCOURSE_USE_S3: true
  DISCOURSE_S3_REGION: <region>
  DISCOURSE_S3_ENDPOINT: https://<namespace>.compat.objectstorage.<region>.oraclecloud.com
  DISCOURSE_S3_ACCESS_KEY_ID: <access_key_id>
  DISCOURSE_S3_SECRET_ACCESS_KEY: <access_key>
  DISCOURSE_S3_BUCKET: <bucket_name>

Oracle Cloud Storage has some format for endpoint address. But whatever the format I tried, the same error massage that I show above.

SSL_connect returned=1 errno=0 peeraddr=134.70.128.1:443 state=error: certificate verify failed (Hostname mismatch)

The format above, I had checked the certificate and it is right in my eyes:

As I talked before, I used this setting to connect by s3cmd tool normally. Thanks so much!