Replies: 2 comments 1 reply
-
The public key (.cer) goes into your Entra ID AppReg. The private key (.pfx) needs to be present for the PnP PowerShell script to connect. That can be by referencing its file path or having it in your certificate store. Regardless of which option you go by, it needs to be present. In your case this seems not to be the case. Reason for that is hard to say as it can be countless reasons. I would say export your PFX to a file, put it on your file system on your server and reference it by its path to see if that does work. If so, you know you're having issues accessing the cert store with your account on your server and you can start digging in that direction. |
Beta Was this translation helpful? Give feedback.
-
Hello everyone, Kind regards and thanks in advance |
Beta Was this translation helpful? Give feedback.
-
I am trying to manage some Sharepoint Online sites with pnp. I can run scripts locally on a server and they work like a charm, but if I try to execute the scripts remotely on the very same server as a target, they fail due to a certificate error:
It is a selfsigned certificate, so it doesnt have a private key, but still I am confused that the same script throws an error if I try to run it remotely.
The cerrtificate is uploaded to the entraID portal and it is installed on my server in the private local machine store, so its accessible for every user. Any advices how to fix that behaviour?
Thank you in advance
Which operating system/environment are you running PnP PowerShell on?
Beta Was this translation helpful? Give feedback.
All reactions