Fix for latest clang
ssl: Switch to certificate chain and asio::ssl methods

Firefox requires full ceritificate chain to consider the server verified.