The most important part are the certificate_path and certificate_password .
Pakage app
flutter pub run msix:create
It would take a while to package the project. Then you would obtain a msix file, this is the installer of the app.
Trusted Root Certification Authorities
Before using this installer to install your app, you need to add the certificate of this installer into the Trusted Root Certification Authorities of your pc. Since you use a self-signed certificate, windows don’t trust it by default.
choose Properties
choose Digital Signatures
choose your certificate then choose Details
click Install Certificate… to install
choose Local Machine
choose Trusted Root Certification Authorities
Finally, click ok and ok. Then you should be able to use this installer.