<div dir="ltr">  Our server runs with DH key size of 2048 bits and we are trying to make requests with httparty(<a href="https://github.com/jnunemaker/httparty" target="_blank">https://github.com/jnunemaker/httparty</a>) to a server that uses DH key size of 1024 bits, i want to now for what reason we are getting this error SSL_connect returned=1 errno=0 state=error: dh key too small, it's because different DH key sizes? 🤔<br><br>We haven't control of the server who are using DH key size of 1048 bits.<br><br><div>I've opened the same issue on httparty <a href="https://github.com/jnunemaker/httparty/issues/664" target="_blank">https://github.com/jnunemaker/httparty/issues/664</a>, but seems not a problem with httparty and something with OpenSSL.<br></div><div><br></div><div>Currently our server is using <b>OpenSSL 1.1.1c</b>, but before we was using <b>OpenSSL 1.1.0j</b> and this error doesn't happen. Is OpenSSL blocking the communication between our server who uses DH 2048 bits and the other server who uses DH 1024 bits (weak Diffie-Hellman)? If yes, is it reported in somewhere?<br></div><div><br></div><div>Our server SSL Labs results: <a href="https://www.ssllabs.com/ssltest/analyze.html?d=web.monde.com.br&latest" target="_blank">https://www.ssllabs.com/ssltest/analyze.html?d=web.monde.com.br&latest</a></div><div><br></div><div>Server who we are trying make requests: <a href="https://www.ssllabs.com/ssltest/analyze.html?d=webservices.voeazul.com.br&latest" target="_blank">https://www.ssllabs.com/ssltest/analyze.html?d=webservices.voeazul.com.br&latest</a></div><div><br></div><div>How we can handle with this? </div><div>I would be happy if anyone can help me with this. :( <br></div><div><br></div><div>Att, Marcelo.</div><div><br></div></div>