I followed the tutorial, got it working with webpack 5, but it still says "invalid certificate". What am I doing wrong?
GET https://localhost:8080/assets/status net::ERR_CERT_AUTHORITY_INVALID
devServer: {
allowedHosts: 'all',
static: path.join(__dirname, '.tmp', 'drop'), // path with assets for dev server, they are generated by webpack plugin
compress: true,
port: 8080, // dev server port
hot: false,
// cert files for dev server
https: {
pfx: fs.readFileSync(path.join(__dirname, 'node_modules/powerbi-visuals-tools/certs/PowerBICustomVisualTest_public.pfx')), // for windows
passphrase: '30815153129428663',
},
headers: {
'access-control-allow-origin': '*',
'cache-control': 'public, max-age=0',
},
},
PS C:\Dev\VSCode\Power BI\circleCard> npm run cert
> cert
> pbiviz --install-cert
info powerbi-visuals-tools version - 4.0.5
info Use '30815153129428663' passphrase to install PFX certificate.
info Certificate path: C:\Dev\VSCode\Power BI\circleCard\node_modules\powerbi-visuals-tools\certs\PowerBICustomVisualTest_public.pfx
Path file and pass phrase are correct, but I can't get a working certificate.
I followed the tutorial, got it working with webpack 5, but it still says "invalid certificate". What am I doing wrong?
Path file and pass phrase are correct, but I can't get a working certificate.