<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: New-ContentLibraryItem OVA import fails with &amp;quot;certificate is not trusted&amp;quot; in VMware PowerCLI Discussions</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/New-ContentLibraryItem-OVA-import-fails-with-quot-certificate-is/m-p/2314719#M83183</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest to open an SR for this.&lt;BR /&gt;I agree that an official OVA should not contain self-signed certificates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, the option to bypass the certificate check is missing on the cmdlet.&lt;/P&gt;&lt;P&gt;I would suggest to launch an idea for this at &lt;A href="https://powercli.ideas.aha.io/"&gt;VMware PowerCLI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In parallel inform your TSA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2020 19:14:46 GMT</pubDate>
    <dc:creator>LucD</dc:creator>
    <dc:date>2020-05-21T19:14:46Z</dc:date>
    <item>
      <title>New-ContentLibraryItem OVA import fails with "certificate is not trusted"</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/New-ContentLibraryItem-OVA-import-fails-with-quot-certificate-is/m-p/2314716#M83180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="horizontal-flex-container property-value"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="horizontal-flex-container property-value"&gt;using VMware.PowerCLI Core 12.0.0.15947286 on Linux VM. Trying to import an item into vCenter content librarywhich fails with "&lt;SPAN class="horizontal-flex-container property-value"&gt;The certificate is self-signed. The certificate is not trusted..". The certificate check is set to "Ignore" in PowerCLI configuration. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="horizontal-flex-container property-value"&gt;&lt;SPAN class="horizontal-flex-container property-value"&gt;I don't see any options in New-ContentLibraryItem cmdlet to allow untrusted cert. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="horizontal-flex-container property-value"&gt;&lt;SPAN class="horizontal-flex-container property-value"&gt;How can I get the OVA imported when vCenter cert is self-signed? Thanks!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono, times;"&gt;PS /home/user&amp;gt; $localContentLibrary = Get-ContentLibrary -Name 'Local library'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono, times;"&gt;PS /home/user&amp;gt; New-ContentLibraryItem -ContentLibrary $localContentLibrary -Name 'nsx-unified-appliance-2.5.1.0.0.15314292' -Files "./tmp/nsx-unified-appliance-2.5.1.0.0.15314292.ova"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono, times;"&gt;An error occurred while trying to update content library item's files. For more details check the inner exception.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vCenter error:&lt;/P&gt;&lt;P&gt;The import of library item 48d9ec5f-5fae-4905-adb1-2bbfa2d5aee1 has failed. Reason: The certificate is self-signed. The certificate is not trusted..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono, times;"&gt;PS /home/user/tmp&amp;gt; Get-PowerCLIConfiguration | select&amp;nbsp; InvalidCertificateAction&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono, times;"&gt;InvalidCertificateAction&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono, times;"&gt;------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono, times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ignore&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: andale mono, times;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Ignore&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 18:31:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/New-ContentLibraryItem-OVA-import-fails-with-quot-certificate-is/m-p/2314716#M83180</guid>
      <dc:creator>andreir</dc:creator>
      <dc:date>2020-05-21T18:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: New-ContentLibraryItem OVA import fails with "certificate is not trusted"</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/New-ContentLibraryItem-OVA-import-fails-with-quot-certificate-is/m-p/2314717#M83181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure this is caused by the vCenter certificate and not the certificate included In the OVF?&lt;/P&gt;&lt;P&gt;Can you import the same via the Web CLient without issue?&lt;/P&gt;&lt;P&gt;See also &lt;A href="https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.vm_admin.doc/GUID-897EEEC2-B378-41A7-B92B-D1159B5F6095.html"&gt;https://docs.vmware.com/en/VMware-vSphere/6.7/com.vmware.vsphere.vm_admin.doc/GUID-897EEEC2-B378-41A7-B92B-D1159B5F6095.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 18:53:19 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/New-ContentLibraryItem-OVA-import-fails-with-quot-certificate-is/m-p/2314717#M83181</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2020-05-21T18:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: New-ContentLibraryItem OVA import fails with "certificate is not trusted"</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/New-ContentLibraryItem-OVA-import-fails-with-quot-certificate-is/m-p/2314718#M83182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Luc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just tried it with the Web Client and it looks like you're right - the problem is with the self-signed certificate bundled with the OVA. This is an official NSX-T OVA that I downloaded from VMware. If I click "Proceed Anyway" then it's imported successfully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks like there is no functionality to ignore OVA certificate with "New-ContentLibraryItem"? Perhaps this can be added in the future?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://communities.vmware.com/t5/image/serverpage/image-id/20189i5CB08B99F78DCBEC/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 19:08:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/New-ContentLibraryItem-OVA-import-fails-with-quot-certificate-is/m-p/2314718#M83182</guid>
      <dc:creator>andreir</dc:creator>
      <dc:date>2020-05-21T19:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: New-ContentLibraryItem OVA import fails with "certificate is not trusted"</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/New-ContentLibraryItem-OVA-import-fails-with-quot-certificate-is/m-p/2314719#M83183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest to open an SR for this.&lt;BR /&gt;I agree that an official OVA should not contain self-signed certificates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And yes, the option to bypass the certificate check is missing on the cmdlet.&lt;/P&gt;&lt;P&gt;I would suggest to launch an idea for this at &lt;A href="https://powercli.ideas.aha.io/"&gt;VMware PowerCLI&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In parallel inform your TSA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 19:14:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/New-ContentLibraryItem-OVA-import-fails-with-quot-certificate-is/m-p/2314719#M83183</guid>
      <dc:creator>LucD</dc:creator>
      <dc:date>2020-05-21T19:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: New-ContentLibraryItem OVA import fails with "certificate is not trusted"</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/New-ContentLibraryItem-OVA-import-fails-with-quot-certificate-is/m-p/2314720#M83184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just in case someone else hits this - until the cmdlet option is added, a solution is to unzip the ova, remove the .cert file, and import it as ovf. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 22:55:50 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Discussions/New-ContentLibraryItem-OVA-import-fails-with-quot-certificate-is/m-p/2314720#M83184</guid>
      <dc:creator>andreir</dc:creator>
      <dc:date>2020-05-21T22:55:50Z</dc:date>
    </item>
  </channel>
</rss>

