Certificate can be passed as PEM string

We needed this so we can read certificate as root, switch process owner and pass content of files to libxr.