set parsed = TRUE before calling parse_certificate()