• Register
0 votes
1.2k views

Problem :

I want to sign the Windows 8 appx package with my pfx file which already I have. I am trying to use the command like below:

signtool.exe sign /fd sha256 /f "key.pfx" "app.appx"

But from this, I get below error:

“SignTool Error: No certificates were found that met all the given criteria.”

What "criteria" am I not meeting here? This is only for the testing purpose so these are self-signed certificates. I have already tried importing a key and then signing with it, but it always results in the above error. How can I fix above error?

7 5 2
3,870 points

Please log in or register to answer this question.

2 Answers

0 votes

Solution :

When you are getting this error through a Visual Studio it is because there is a signing certificate setup should match your computer it is originally developed on.

So you can check this by going to your project properties > signing tab and checking your certificate details.

You can uncheck the "Sign the ClickOnce manifests" to disable the signing.

If you just don't want to turn this option off then you will have to install a certificate.

OR

Please always check the certificate expiry date first as most of your certificates have the expiry date. In my case my certificate has expired and I was trying to build my project.

9 7 4
38,600 points
0 votes

Solution:

At the time obtaining this error v9ia Visual Studio it was since there was a signing certificate setup to match the computer it was basically developed on. You can inspect this by going to the project properties > signing tab and checking the certificate details.

Attempt with /debug.1,2 As in :

signtool sign /debug /f mypfxfile.pfx /p <password> (mydllexectuable).exe

It will help you trace out what is going on. You must obtain output like this:

The following certificates were considered:
    Issued to: <issuer>
    Issued by: <certificate authority> Class 2 Primary Intermediate Server CA
    Expires:   Sun Mar 01 14:18:23 2015
    SHA1 hash: DD0000000000000000000000000000000000D93E

    Issued to: <certificate authority> Certification Authority
    Issued by: <certificate authority> Certification Authority
    Expires:   Wed Sep 17 12:46:36 2036
    SHA1 hash: 3E0000000000000000000000000000000000000F

After EKU filter, 2 certs were left.
After expiry filter, 2 certs were left.
After Private Key filter, 0 certs were left.
SignTool Error: No certificates were found that met all the given criteria.

You can view what filter is causing your certificate to not perform, or in case no certificates were considered.

In case you do not have to sign the app, right click on your project

Project Properties -> Signing -> uncheck "Sign the ClickOnce Manifest"

To resolve this problem, confirm the certificate is installed rightly

1.  Open Internet Explorer

2.  Click Tools > Internet Options > Content tab > Certificates

3.  Under the Personal tab, double-click the certificate

4.  At the bottom of the General tab, the following assertion should subsist: You have a private key that fulfill to this certificate.

10 6 4
31,120 points

Related questions

0 votes
2 answers 68 views
68 views
Problem : I am new to Windows 8 OS. I am facing the error while trying to install the IIS manager from the "Turn on off windows features" on my windows 8 machine. I have already installed all the updates on my machine and also rebooted my machine and after ... install the IIS manager. The error is as follows "The function attempted to use a name that is reserved for use by another transaction".
asked Feb 17, 2020 mphil 2.3k points
0 votes
2 answers 36 views
36 views
Problem: What tabs found in the Windows Task Manager dialog box? (Choose all that apply). Applications Startup Processes Performance Can any one help me?
asked Feb 20, 2020 maddi86 5.4k points
0 votes
2 answers 313 views
313 views
Problem : I am facing below error while trying to compile my code of C# in visual Studio 2015. &ldquo;There is no argument given that corresponds to the required formal parameter&rdquo;
asked Jan 22, 2020 jwilliam 3.9k points
1 vote
1 answer 231 views
231 views
Problem : I am very new to SQL Queries. Recently I have joined new team and I am given below task Find the country that has all the vowels and no spaces in its name? I have written below query SELECT country FROM world WHERE country LIKE '%u'       and country LIKE ... of time in writing the correct query but still unable to do it. So I am looking for sql experts help in fixing my above query.
asked Apr 17, 2020 stewart 4k points
0 votes
1 answer 447 views
447 views
Problem: I am having only basic knowledge of git. Now I am trying to clone the project from a gitlab to my own local machine. I have already been granted rights as the developer on it and I have used the command as 'git clone&rsquo;. But none of the ... &ldquo;Remote: The project you were looking for could not be found.&rdquo; Any help in fixing my git related error would be highly appreciated.
asked Sep 4, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 256 views
256 views
Problem : When I wanted to install my module 'pymc' through the anaconda environments, it showed me the below error message: UnsatisfiableError: The following specifications were found to be in conflict: · blaze -> pyyaml -> python[version='>=2.7,<2.8.0a0'] -> vc=9 · blaze -> ... 2.7.14, and I also installed anaconda 1.6.9 on the Windows. I am very new to Python. How can I resolve the above error?
asked Jan 10, 2020 alecxe 7.5k points
1 vote
1 answer 349 views
349 views
Problem : I am a Computer Science Student. I want to develop my website by using Django 2.1.3 and python 3.7.1. If I try to go to my websites homepage then i often face below error: Traceback: File "C:\Users\Martin\AppData\Local\Programs\Python\ ... TypeError at / Exception Value: __init__() takes 1 positional argument but 2 were given Please guide me in fixing my above django related error.
asked May 14, 2020 Martin K 6.6k points
0 votes
2 answers 322 views
322 views
Problem : I am trying to create the table but facing below error &ldquo;Error: There is no unique constraint matching given keys for referenced table.&rdquo; How to fix the above error?
asked Jan 21, 2020 jwilliam 3.9k points
0 votes
2 answers 1.2K views
1.2K views
Problem : I am facing below listed very strange error. I am using Apache Server. &ldquo;413. that&rsquo;s an error. your client issued a request that was too large. that&rsquo;s all we know.&rdquo; How can I fix this error?
asked Feb 15, 2020 mphil 2.3k points