allow putting the certificate directly instead of requiring a path