Replies: 1 comment 2 replies
-
It sounds like your base64 encoded cert isnt stored correctly in KV. If you have access to KV you could verify the string. It should be a very long string that contain no whitespaces. |
Beta Was this translation helpful? Give feedback.
2 replies
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.
-
Hi All,
I am having an issue connecting to using Connect-PnPOnline
$tenant = $env:Tenant
$clientId = $env:ClientId
$certificateBase64Encoded = $env:Certificate
$templateLibUrl = $env:TemplateLibUrl
Connect-PnPOnline -Url $templateSiteUrl -Tenant $tenant -ClientId $clientId -CertificateBase64Encoded $certificateBase64Encoded
[Error] ERROR: The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.
My Certificate is stored in an Azure Key Vault and the $env:Certificate points to the Key Vault Certificate Identifier.
Can someone tell me why it returns this error?
Beta Was this translation helpful? Give feedback.
All reactions