Configure certificate from any object that responds to read

We have certificates that reside in a database. This change allows certificates to be configured from a file path or any object that responds to ``read``.