reqwest
reqwest copied to clipboard
Connection pool behavior on expiring certificates
I am using an async client (connection pool) and sending a request every x minutes. The third party API SSL certificate was valid when the application started and expired some days later (a new SSL certificate does exist).
error sending request for url (https://...): error trying to connect: error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:../ssl/statem/statem_clnt.c:1883: (certificate has expired)
I have received this error for approx. 2.5 hours before it started working again.
What is the current behavior for pooled connections and certificates that have expired while running?
That error points out it was trying to connect, so it wasn't a pooled connection. If you're using the default TLS, it's just using openssl's defaults, in case it caches certificates.