Added support for certificate and keys as strings instead of paths.