Change pem to pem_data, which require the cert-pem content directly.
This change is made to suit the actual store situation happend in
database, where all certs are stored as string.