when trying to apply the certificate part on the deployment guide (Step 8)
I got this error
PS C:\infrastructure> .\Export-PfxFiles.ps1 -ConfigurationFilePath .\ConfigTemplate.xml
Certificate XXXXXXXX is valid
Exporting PFX for thumbprint XXXXXXXX to C:\infrastructure\Certs\star.d365ffo.onprem.XXXX.com.pfx
Export-PfxCertificate : Cannot export non-exportable private key.
At C:\infrastructure\Export-PfxFiles.ps1:103 char:21
+ ... ortedCert = Export-PfxCertificate -Cert $certPath -FilePath $outputPa ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Export-PfxCertificate], Win32Exception
+ FullyQualifiedErrorId : System.ComponentModel.Win32Exception,Microsoft.CertificateServices.Commands.ExportPfxCertificate
I created the certificate with IIS, how to create certificate with exportable key?
thanks in advance