Implement functionality to get both key and cert.