New-SelfSignedCertificate -Type Custom `
-Subject "CN=ElectronSign, 0=Your Corporation, C=US" `
-TextExtension @("2.5.29.19={text}false") `
-KeyUsage DigitalSignature `
-TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}") `
-FriendlyName ElectronSign `
-CertStoreLocation "Cert:\CurrentUser\My"
npm run dist:win
cd dist
"C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\signtool.exe" sign /v /fd sha256 /n "14D52771-DE3C-4886-B8BF-825BA7690418" .\Bitwarden-2022.<version>.appx