Skip to content

Instantly share code, notes, and snippets.

@Far-Se
Last active August 14, 2022 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Far-Se/6991cee21e6307e15b03670d70204481 to your computer and use it in GitHub Desktop.
Save Far-Se/6991cee21e6307e15b03670d70204481 to your computer and use it in GitHub Desktop.
Flutter desktop sign executable
:: paste one by one, you will receive questions for each.
openssl genrsa -out appname.key 2048
openssl req -new -key appname.key -out appname.csr
openssl x509 -in appname.csr -out appname.crt -req -signkey appname.key -days 365
openssl pkcs12 -export -out CERTIFICATE.pfx -inkey appname.key -in appname.crt
signtool sign /f "path\to\CERTIFICATE.pfx" /p "password" /t http://timestamp.digicert.com /fd SHA256 "path\to\executable.exe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment