Add function to grab a certificate from the server