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] Signtool - Error information: "Error: SignerSign() failed." (-2147024885/0x8007000b) #274

Open
mmattes opened this issue Jul 5, 2024 · 4 comments

Comments

@mmattes
Copy link
Contributor

mmattes commented Jul 5, 2024

ℹ️ Info

Version: v3.16.7

💬 Description

This is not really a bug it is more a wish to improve the documentation or to keep it as a reference for he future if others struggle with the same problem we were having.

We were struggeling a lot to get a signed msix with digicert the error we were facing was Error information: "Error: SignerSign() failed." (-2147024885/0x8007000b). In the end we found the issue the publisher in the pubspec.yaml needs to be in the correct order. We retrived it with the following commands.

Convert PEM to CER using OpenSSL (run this command in cmd or PowerShell)
openssl x509 -inform PEM -in your_certificate.pem -outform DER -out your_certificate.cer

Import the certificate
$certPath = "C:\path\to[your_certificate.cer](http://your_certificate.cer/)"
$certStore = "Cert:\LocalMachine\My"
Import-Certificate -FilePath $certPath -CertStoreLocation $certStore

Retrieve the certificate
$cert = Get-ChildItem -Path $certStore | Where-Object { $_.Subject -like "Your Certificate Common Name" }

Display the distinguished name
$cert.Subject

📜 Pubspec.yaml

N/A

@kjxbyz
Copy link

kjxbyz commented Sep 18, 2024

Same issue, how to solve it?

@mmattes
Copy link
Contributor Author

mmattes commented Sep 18, 2024

Same issue, how to solve it?

See Initiatial issue where i also mentioned how we got it working.

@kjxbyz
Copy link

kjxbyz commented Sep 18, 2024

In the end we found the issue the publisher in the pubspec.yaml needs to be in the correct order.

Is this it? I don't understand what you mean.

@mmattes
Copy link
Contributor Author

mmattes commented Sep 21, 2024

@kjxbyz do this.

`Convert PEM to CER using OpenSSL (run this command in cmd or PowerShell)
openssl x509 -inform PEM -in your_certificate.pem -outform DER -out your_certificate.cer

Import the certificate
$certPath = "C:\path\toyour_certificate.cer"
$certStore = "Cert:\LocalMachine\My"
Import-Certificate -FilePath $certPath -CertStoreLocation $certStore

Retrieve the certificate
$cert = Get-ChildItem -Path $certStore | Where-Object { $_.Subject -like "Your Certificate Common Name" }

Display the distinguished name
$cert.Subject`

The Output of the last command ist what needs to be in the pubspec.yaml

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

2 participants