Call cert.to_pem before recipe DSL

Fixes #10, calls `#to_pem` on `cert` and `key` before passing local variables to `Chef::Resource::File`.