Retry to use http when OpenSSL::SSL::SSLError raises - #2
Conversation
|
I am not sure if this is a safe change. If there is no SSL, that's one thing, but SSLError could also be because the certificate is unverified, which might be a MITM attack - in which case falling back to http is not wise. |
|
Thank you for the comment. |
changed client to retry only if the LOCAL_HTTPS is not true.
|
I just updated to retry with http only when the LOCAL_HTTPS setting is not true. |
|
I am working on a federation testsuite and want to implement mastodon as well. Since all federation tests happen in a docker environment.. using SSL is a bit much overhead. I am also interested in using |
We are using http for mastodon instance inside of the company,
but when the instance opens port 443 or uses different port from 80,
goldfinger library fail to fetch the webfinger because of SSLError.
Could you retry to use http when the OpenSSL::SSL::SSLError raises?