Fix certificate provider failing when being used remotely
Fix certificate provider failing when being used remotely

Using the certificate resource remotely, like winrm, would fail
while the exact same code would run properly locally.

modulexcite/windows,ruicovelo/windows,opscode-cookbooks/windows,daptiv/windows,tophercullen/windows,chef-cookbooks/windows,protec-cookbooks/windows,shoekstra/chef-windows,spuder/windows,criteo-forks/windows,stuartpreston/windows,urban-institute/windows,juliandunn/windows,GannettDigital/chef-windows,mrwizard82d1/windows,rlaveycal/windows,jboeshart/windows,blairham/windows-cookbook,autoclone/windows,Chhed13/windows,wildbillcat-cookbooks/windows