VMware Cloud Community
toffaha1
Enthusiast
Enthusiast

Can't export TPMCA certificate

Hi All,

while performing these steps using Powershell 

https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.security.doc/GUID-4472E799-189D-48C...

 

I got the following error 

PS C:\Users\admin> Export-Tpm2CACertificate -Tpm2EndorsementKey $tpm2 -FilePath C:\tmp\vc\36cacert.zip
Export-Tpm2CACertificate : 16.02.2022 15:42:03 Export-Tpm2CACertificate Invalid X509Certificate2 provided, its CA
issuer file couldnot be downloaded.
In Zeile:1 Zeichen:1
+ Export-Tpm2CACertificate -Tpm2EndorsementKey $tpm2 -FilePath C:\tmp\v ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Export-Tpm2CACertificate], VimException
+ FullyQualifiedErrorId : Security_WorkloadVMHostSettingServiceImpl_GetCACertificate_CertificateIssue,VMware.Vi
mAutomation.Security.Commands.Cmdlets.TrustedInfrastructure.ExportTpm2CACertificate

Best Regards,
Muhammad Toffaha
Technical Consultant
0 Kudos
2 Replies
LucD
Leadership
Leadership

Did the previous steps in that procedure finish correctly?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
toffaha1
Enthusiast
Enthusiast

Hello @LucD 

 

I tried from a different machine with administrator@vsphere.local account and it went well

thanks 

Best Regards,
Muhammad Toffaha
Technical Consultant
0 Kudos