Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Do you want to install the certificate: "SIDEKICK-CERT.pfx" ? (y/N) #230

Open
aguilaair opened this issue Sep 4, 2023 · 5 comments

Comments

@aguilaair
Copy link

ℹ️ Info

Version: 3.16.0

💬 Description

Enter a description of your problem here.

Any logs, error and assets you have that can help to find this bug.

To run the tool with extended logs use the -v argument, for example: flutter pub run msix:create -v

See: leoafarias/sidekick#307 with Action https://github.com/fluttertools/sidekick/actions/runs/6072041308

The output for a non-store version is:

Run flutter pub run msix:create
building msix files...                  OK 15.9s
packing msix files...                  IN PROGRESS

Unhandled exception:
type 'Null' is not a subtype of type 'FutureOr<String>'
#0      _AsyncCompleter.complete (dart:async/future_impl.dart:42:41)
#1      Prompter.prompt.<anonymous closure>.<anonymous closure> (package:console/src/prompt.dart:222:19)
#2      new Future.<anonymous closure> (dart:async/future.dart:256:37)
#3      Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
#4      _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
#5      _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
#6      _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)
Do you want to install the certificate: "SIDEKICK-CERT.pfx" ? (y/N) 
Error: Process completed with exit code 1.

📜 Pubspec.yaml

We ask that you include your pubspec.yaml file as a common problem we have seen has been the pubspec.yaml file being incorrect

msix_config:
    display_name: Sidekick DEV Build
    publisher_display_name: Eduardo M.
    identity_name: 44484EduardoM.SidekickFlutter
    publisher: CN=1E781C91-227E-4505-B5B8-7E5EFE39D3A6
    msix_version: 1.0.0.0
    logo_path: assets\promo-windows\icon.png
    architecture: x64
    capabilities: "internetClient,removableStorage"
    certificate_path: windows\SIDEKICK-CERT.pfx
    certificate_password: ***
    install-certificate: false
    build_windows: false
    store: false

Full pubspec in: https://github.com/fluttertools/sidekick/blob/main/pubspec.yaml MISX info is appended on the CI here: https://github.com/fluttertools/sidekick/blob/57215e1910413341b6974fbfc38b6a3f94342b1f/.github/workflows/main.yaml#L143

@YehudaKremer
Copy link
Owner

Hey

Use install_certificate: false instead of install-certificate: false.

@aguilaair
Copy link
Author

Now it says:

The following certificate was selected:
    Issued to: Sidekick Contributors

    Issued by: Sidekick Contributors

    Expires:   Tue Jan 06 14:32:49 2026

    SHA1 hash: 3BEEC42E404E3653BA202114852554F2EC5488DC


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

Unhandled exception:
SignTool Error: An unexpected internal error has occurred.

#0      ProcessResultExtensions.exitOnError (package:msix/src/method_extensions.dart:61:7)
#1      SignTool.sign (package:msix/src/sign_tool.dart:247:9)
<asynchronous suspension>
#2      Msix._packMsixFiles (package:msix/msix.dart:149:7)
<asynchronous suspension>
#3      Msix._createMsix (package:msix/msix.dart:103:5)
<asynchronous suspension>
#4      Msix.create (package:msix/msix.dart:59:5)
<asynchronous suspension>
#5      main (file:///C:/hostedtoolcache/windows/flutter/stable-3.13.2-x64/.pub-cache/hosted/pub.dev/msix-3.16.1/bin/create.dart:4:3)
<asynchronous suspension>

@aguilaair
Copy link
Author

@YehudaKremer sorry for the ping, any recommendations?

@boeledi
Copy link

boeledi commented Nov 15, 2023

Same issue with a self-signed certificate.
image

@YehudaKremer
Copy link
Owner

Hello,

Try this: https://techcommunity.microsoft.com/t5/msix/quot-error-signersign-failed-quot-2147024885-0x8007000b/m-p/2666013/highlight/true#M1274

Make sure your "publisher" is valid:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants