Forum Discussion

MikeAinOz's avatar
MikeAinOz
Helper V
4 years ago

pbiviz not recognising certificate

HI There, I've been updating my development environment with the latest pbiviz stuff
I did a:

npm i -g powerbi-visuals-tools

and:

pbiviz --install-cert

in Windows terminal/powershell

 

Then I opened a project in Visual Code and using terminal did a:

pbiviz package
info Building visual...
info Installing API: ~3.8.0...

 

Certificate is invalid!
warn Local valid certificate not found.
info Checking global instance of pbiviz certificate...

warn Global instance of valid pbiviz certificate not found.
info Generating a new certificate...
info Certificate generated. Location is C:\Users\mike\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\certs\PowerBICustomVisualTest_public.pfx. Passphrase is '4492518445773821'
info Start preparing plugin template
info Finish preparing plugin template
error error:0308010C:digital envelope routines::unsupported
C:\Users\mike\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\node_modules\powerbi-visuals-webpack-plugin\index.js:185
throw new Error("Failed to generate visualPlugin.ts");
^

Error: Failed to generate visualPlugin.ts
at C:\Users\mike\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\node_modules\powerbi-visuals-webpack-plugin\index.js:185:12
at async PowerBICustomVisualsWebpackPlugin._beforeCompile (C:\Users\mike\AppData\Roaming\npm\node_modules\powerbi-visuals-tools\node_modules\powerbi-visuals-webpack-plugin\index.js:177:4)

Node.js v17.0.0

 

I've tried uninstalling, reatarting and various incantations, but it doesn't want to go.

Is my certificate really invalid? How do I check it? Are there any diagnostics I can run?
Any and all advice gladly accepted

1 Reply