Yvand/EntraCP

Issue with certificates

Closed this issue · 2 comments

Hi
I've installed EntraCP with success using powershell described in the documentation on a SharePoint SE server using Secret Key.
Now, secretkey is no more accepted within our organisation, and I need to use a certificate. I have the PFX file (Triple-DES) and the password.
The powershell works until:
$tenant.ClientCertificateWithPrivateKey = $cert
Error message : 'ClientCertificateWithPrivateKey' is a ReadOnly property.
If I ignore this message and come to
$config.ApplySettings($settings, $true)

The error message is :
Exception calling "ApplySettings" with "2" argument(s): "Configuration is not valid because tenant
"sabcabe.onmicrosoft.com" has both properties ClientSecret and ClientCertificateWithPrivateKey not set in list
EntraIDTenants, while one must be set"
At line:1 char:1

  • $config.ApplySettings($settings, $true)
  •   + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
      + FullyQualifiedErrorId : InvalidOperationException
    
    

I have already fully removed/reinstalled everything, but nothing change. It seems it keeps somewhere the fact that the clientsecret was defined and it cannot update the ClientCertificateWithPrivateKey.
Any idea how to solve it ?
Christophe Sarteel

I tried again with the interface (not powershell) and it is working... So fine for me.
Many thanks!