ironing out errors for debugging get_certificate