Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9024429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T06:00:28+00:00 2026-06-16T06:00:28+00:00

Few month ago a was able to successfully sign CAB file with test certificate

  • 0

Few month ago a was able to successfully sign CAB file with test certificate I have created on my server. Here are the steps I have taken:

makecert.exe -sv “Demo.pvk” -n “CN=Demo Company,E=demo@gmail.com” “Demo.cer”

cert2spc.exe “Demo.cer” “Demo.spc”

pvk2pfx.exe -pvk “Demo.pvk” -pi “pvk_password” -spc “Demo.spc” -pfx “Demo.pfx” -po “pfx_password”

signtool.exe sign /f “Demo.pfx” /p “pfx_password” /v “D:\Setup.cab”

All the steps are successfull except the last one with signtool that returns: “The signer’s certificate is not valid for signing”.
I have done the research on web about this error but nothing did actualy solved my problem. This error is usualy created because pfx has expired but this is not the case here. I have successfully imported certificate to local cert store and checked it’s validity.

Why I am not able to sign CAB with my pfx any more even if I recreate it?
Is there some windows update responsible for this change?

I am open to suggestions for any other way to sign CAB with pfx using command prompt.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T06:00:30+00:00Added an answer on June 16, 2026 at 6:00 am

    I have managed to crack this nut and signed CAB with test certificate.

    First I have changed makecert call by adding -r parameter that stands for self-signing:

    makecert.exe -sv "Demo.pvk" -n "CN=Gregor Primar SP,E=gprimar@gmail.com" "Demo.cer" -r
    

    Next step was creating pfx using makecert not pvk2pfx any more:

    makecert -sk GpSolutionsKey -iv "Demo.pvk" -n "CN=Gregor Primar SP" -ic "Demo.cer" -sr currentuser -ss my -sky signature -pe
    

    This also imports pfx to user cert store (-sr currentuser).

    Then I have opened mmc and add Certificates snap-inn (my user account). Selected personal certificate and exported to disc.

    The last step was signing using following command:

    signtool.exe sign /f "Demo.pfx" /p "pfx_password" /v "d:\Setup.cab"
    

    And Setup.cab was successfully signed with Demo.pfx!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

A few months ago (August 2011) I successfully created a node.js websockets server which
A few month ago I asked a similar question here . However I cannot
From few months ago when i was using twitter, i was able to send
I started programming just few month ago so I am a pure beginner but
Few times ago, I asked how to do to display data per month, I
I have a website that was launched a few months ago. I would like
A few months ago, i created a shellscript that mostly uses db connection/http requests,
few month ago i write something to get the latitude or longitude from google
On a legacy product I successfully migrated to VS2010 about a month ago: When
I only got into PHP a few months ago and have been dabbing into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.