title: How to execute a cUrl equivalent in Powershell (Invoke-WebRequest) using cacert file?
body: <p>Basically i would like to translate the command curl as with same parameters as its currently in a linux server, but in Powershell, in order to upload a file:</p>
  
  <pre><code>curl -v -T $file -u user:password http://myurl --cacert /opt/keystores/ca_cert.pem
  </code></pre>
  
  <p>I've found a equivalent command to perform this task: "Invoke-WebRequest" for PowerShell 3.0+, but the problem is I don't know how to call it using a CA Cert file (.pem) and I haven't found any sample in Internet.</p>
  
  <p>Thanks!</p>