Hello @Lasse.H , Stellen Sie sicher, dass das network_service Konto Zugriff auf den privaten Zertifikatschlüssel hat. Please ensure the network_service account has access to the certificate private key.
Dieses Powershell-Skript sollte Ihnen helfen. This Powershell script should help you:
$userName="NETWORK SERVICE"
$permission="Read"
$certStoreLocation="<cert store location>"
$certThumbprint="<cert thumbprint>"
$rule = new-object security.accesscontrol.filesystemaccessrule $userName, $permission, allow
$root = "c:\programdata\microsoft\crypto\rsa\machinekeys"
$l = ls Cert:$certStoreLocation
$l = $l |? {$_.thumbprint -like $certThumbprint}
$l |%{
$keyname = $_.privatekey.cspkeycontainerinfo.uniquekeycontainername
$p = [io.path]::combine($root, $keyname)
if ([io.file]::exists($p)){
$acl = get-acl -path $p
$acl.addaccessrule($rule)
echo $p
set-acl $p $acl
}
}
Please let me know if you need more help. If the answer was helpful to you, please accept it and, optionally, provide feedback so that other members in the community can benefit from it.
@Lasse.H
Thank you for your post! Would you be able to post your error message in English so I can better troubleshoot your issue?
If you have any other questions, please let me know.
Thank you for your time and patience throughout this issue.
@Lasse.H
I just wanted to check in and see if you had any other questions or if you were able to resolve this issue?