Spfx dev cert with WSL
To trust dev cert in Ubuntu note the location of the .cer
file noted in the error message of gulp trust-dev-cert
.
Copy this file to the Windows filesystem somewhere, and import it to Trusted Root Certificate Authorities using the process listed below (see reference).
- Open Run and enter mmc.
- File > Add/Remove Snap In > under Available snap-ins select Certificates and then select Add.
- Select Computer Account, Next, Current User, Local computer, and then Finish.
- Select OK.
- Back in mmc, in Console Root tree select Certificates, right-click Trusted Root Certificate Authorities and select All Tasks > Import
- Select Next, browse for
.cer
file, Next, Next, Finish, OK.
For extensions you may need to manually do the following:
Note the line in terminal, To load your scripts, use this query string: ?debug=true&noredir=true&debugManifestsFile=https://localhost:4321/temp/manifests.js
.
Open this file in your browser: https://localhost:4321/temp/manifests.js and accept warnings.