Allowing custom function for Google certificate retrieval