BUG/MINOR: ssl: Fix crash when no private key is found in pem

If no private key can be found in a bind line's certificate and
ssl-load-extra-files is set to none we end up trying to call
X509_check_private_key with a NULL key, which crashes.

This fix should be backported to all stable branches.

(cherry picked from commit 9bf3a1f67eb3bc6f02abcabf8ab141840c7a1db2)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit bd5a6c43ef3714c3c75d653392ed48a12a69f9af)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed