voltone / x509

Elixir package for working with X.509 certificates, Certificate Signing Requests (CSRs), Certificate Revocation Lists (CRLs) and RSA/ECC key pairs
BSD 3-Clause "New" or "Revised" License
120 stars 28 forks source link

Fix flaky test #42

Closed voltone closed 3 years ago

voltone commented 3 years ago

Ignore unexpected TLS handshake errors for client cert test scenarios: it seems that with recent OTP versions, the TLS handshake sometimes fails with a socket error (socket_closed_remotely, einval) rather than a TLS alert; perhaps this happens when a socket write fails before the alert has been read. As a result we can't fail the test un unexpected responses.