@joshcooper I saw that as well, but I just thought that either openssl or the way that callback thing built the list made them end up in the reverse order.

On the server I had the problem this patch fixed the issue. And I tested using the openssl command line tool that other servers sent the certs in the same order.