Replies: 2 comments 2 replies
|
Try the last step with the verbose flag again, it should hopefully get better output.
A bit hard to say for me too, but for what it's worth we set |
|
https://tauri.app/v1/guides/distribution/sign-windows/ 2 Things to add there from my experience |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to sign the app, but it doesn't work, can you share your success story?
I don't have an official certificate, I followed Microsoft's instructions to create a test certificate, I'm not sure if it's the right thing to do. ( Creating Test Certificates) I don't know that "publisherName" should correspond to that part of the tauri project. I have tried the project name and "identifier" in tauri.conf.json, and it seems that "identifier" is closer.
I successfully got the certificate.pfx file after I followed Microsoft's guide.
Specifically, I executed the following commands
1,
MakeCert /n "CN=com.test.dev" /r /h 0 /eku "1.3.6.1.5.5.7.3.3,1.3.6.1.4.1.311.10.3.13" /e 12/31/2039 /sv certificate.pvk certificate.cer2,
Pvk2Pfx /pvk certificate.pvk /pi 123456 /spc certificate.cer /pfx certificate.pfx /po 123456The "identifier" in tauri.conf.json is "com.test.dev" ,so "publisherName" is ”CN=com.test.dev“(right?) and all the places where the password is encountered are 123456
Next, I refer to Tauri's Windows Code Signing guidance document.
A. Convert your .cer to .pfx. I skipped it since I already have a certificate.pfx file.
B. Import your .pfx file into the keystore. Failed, but I tweaked it and it worked, but not sure if that's the right way to do it
The command succeeded
$WINDOWS_PFX_PASSWORD = '123456'.But another command
Import-PfxCertificate -FilePath certificate.pfx -CertStoreLocation Cert:\CurrentUser\My -Password (ConvertTo-SecureString -String $env:WINDOWS_PFX_PASSWORD -Force -AsPlainText)failed.I modified it and it worked
Import-PfxCertificate -FilePath certificate.pfx -CertStoreLocation Cert:\CurrentUser\My -Password (ConvertTo-SecureString -String 123456 -Force -AsPlainText)C. Prepare Variables.
The command
openssl pkcs12 -info -in certificate.pfxsucceeded and I got the localKeyID 01000000.Prepare tauri.conf.json file
According to the documentation,
tauri->bundle->windowsin tauri.conf.json is changed toSave run
npm run tauri buildnotyarn | yarn build.Then got a signature error
Error failed to bundle project: failed to run C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\signtool.exeWhich step is wrong? please help me
Thanks
All reactions