YehudaKremer / msix

Create Msix installer for flutter windows-build files.
https://pub.dev/packages/msix
MIT License
280 stars 70 forks source link

Error: SignerSign() failed." (-2147024885/0x8007000b) #48

Closed Priyansu67 closed 3 years ago

Priyansu67 commented 3 years ago

v2.1.3

Description:

[❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚❚] 90% signing..
The following certificate was selected:
    Issued to: www.priyansu.in
    Issued by: www.priyansu.in
    Expires:   Sat Jan 09 23:16:06 2049
    SHA1 hash: B106D3E8F020B4B167FA3AAEC17F4298DEBEC332

Done Adding Additional Store
Error information: "Error: SignerSign() failed." (-2147024885/0x8007000b)

SignTool Error: An unexpected internal error has occurred.

Pubspec.yaml:

msix_config:
  display_name: Headliners
  publisher_display_name: Priyansu Choudhury
  identity_name: www.priyansu.in
  msix_version: 1.0.0.0
  publisher: C = IN, S = Odisha, L = Jeypore, O = Priyansu Choudhury, OU = Personal, CN = www.priyansu.in
  certificate_path: C:\Users\priya\Desktop\CERTIFICATE.pfx
  certificate_password: somepassword
  icons_background_color: transparent
  architecture: x64
  capabilities: 'internetClient'
  store: false

My Certificate Subject: subject=C = IN, ST = Odisha, L = Jeypore, O = Priyansu Choudhury, OU = Personal, CN = www.priyansu.in, emailAddress = priyansuc67@gmail.com

YehudaKremer commented 3 years ago

Hello

Please try this solution https://github.com/YehudaKremer/msix/issues/17#issuecomment-758661797 also try remove white spaces like: L = Jeypore, to L=Jeypore,

Priyansu67 commented 3 years ago

Worked like a charm. So for someone else facing the problem. Step-1: Enter Get-PfxCertificate in Windows Powershell. Step 2: FilePath[0]: Path of your pfx certificate and hit enter. Step 3: FilePath[1]: Keep this empty and hit enter. Step 4: Enter your password for the certificate. Step 5: Copy the subject and paste it exactly in pubspec.yaml

Note: Open PowerShell in fullscreen or part of the subject will be cropped and will have to repeat from step 1.