Add function to query server certificates.