Upload Certificate to existing Azure App for Connect-PnPOnline #2793
Unanswered
rajarshibhargav
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can someone help with the steps required to upload a certificate to an existing Azure app and use it for authenticating Connect-PnPOnline?
I have an app APP1 which can Connect-PnPOnline using CLientID and Secret. I want to do certificate authentication, so I followed the following steps:
openssl req -newkey rsa:4096 -x509 -sha256 -nodes -out 3years.crt -keyout 3years.key
Upload crt to APP1 in azure portal .
openssl pkcs12 -export -out new1.pfx -inkey 3years.key -in 3years.crt
PS /app> Connect-PnPOnline -Url "https://dummy-admin.sharepoint.com" -ClientId "APP1" -Tenant dummy.onmicrosoft.com -CertificatePath ./new1.pfx
PS /app> Get-PnPTenant Get-PnPTenant: The remote server returned an error: (401) Unauthorized.
Beta Was this translation helpful? Give feedback.
All reactions