Forum Discussion
buszi99
Jun 21, 2024Brass Contributor
PNP Connect with certificate
Hello. I have 2 registered applications in Azure. I genereted certificates and uploaded and also i granted permissions. Situation is weird because app1 i can acces from only one computer app2 from second. I cannot acces to app1 from pc2 and to app2 from pc1 because of this error:
Values are correct. Please help.
Best regards,
Kamil
- If you are connecting by providing the certificate thumbprint, make sure that the private key for the certificate is available on the local machine and the user account you're logged in on the device is able to read the key.
- buszi99Brass ContributorHow do i check that? I want to also run this in cloud where Azure Function with PowerShell connects with Entra ID registered app. How to make it?
- buszi99Brass Contributori'm using this powershell code:
$SiteURL = "https:/xxxx.sharepoint.com/sites/site11/"
$ClientID = "appipd"
$ThumbPrint = "<thubprint here>"
$Tenant = "xxx.onmicrosoft.com"
Connect-PnPOnline -Url $SiteURL -ClientId $ClientID -Thumbprint $ThumbPrint -Tenant $Tenant- Right, try using the -CertificatePath parameter instead of -Thumbprint (and make sure to also provide the password as needed).