title: Determine if a .pfx file needs a password before calling Add-AzureCertificate
body: <p>I am using the following code to install a .pfx file on an Azure Cloud Service:</p>
  
  <pre><code>Add-AzureCertificate -serviceName $CloudServiceName -certToDeploy $PfxFile.FullName -ErrorAction 'Stop' -Password $applicationCertsPassword
  </code></pre>
  
  <p>I think it's throwing an Exception because the .pfx file does not require a password.</p>
  
  <p>How can I determine before hand whether or not the .pfx file requires a password?</p>
  
  <p><strong>EDIT:</strong>
  I'd like to determine before hand if the .pfx file has a password or not so I can avoid running the commandlet again without the password argument in the catch block.</p>