Nim/winrm certgen

Cherry-picked commits from https://github.com/opscode/knife-windows/pull/95