Creating a private key to sign a PowerShell Script with makecert is no longer possible?

Discussion in 'Windows XP Security' started by olspookishmagus, Oct 4, 2017.

  1. olspookishmagus

    olspookishmagus

    Joined:
    Oct 4, 2017
    Messages:
    2
    Likes Received:
    0
    Hello.

    I'm struggling to create a private key in order then to use to sign a PowerShell Script and I would really use some help on this.

    Firstly I wanted to be able to run PowerShell scripts without having to lower PowerShell's Execution-Policy and in order to do that one should have to be able to sign scripts.

    Therefore and after installing the Windows SDK I'm trying to create a private key (and then a certificate) in order to be able to sign scripts.

    But this fails likewise:
    Code:
    C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin>makecert -n "CN=PowerShell Local Certificate Root" -a sha1 -eku 1.3.6.1.5.5.7.3.3 -r -sv root.pvk root.cer -ss Root -sr localMachine
    Error: Can't create the key of the subject ('root.pvk')
    Failed
    And so I've begun trying to debug this, with no success.

    So far I've checked with these:
    • I checked with makecert's documentation to check whether the command parameters are correct
    • executed the command from within a non-special directory
    • executed the command as the local Administrator user
    • executed the command from an "elevated" Command Prompt or an "elevated" PowerShell
    • made sure the security permissions for _ALL_ the Crypto/RSA directories are set as indicated
    If you have any ideas or you would like to share your insights or have me walk again over again something I've already tried/mentioned please feel free to comment.

    Thanks in advance.
     
    olspookishmagus, Oct 4, 2017
    #1
    1. Advertisements

  2. olspookishmagus

    olspookishmagus

    Joined:
    Oct 4, 2017
    Messages:
    2
    Likes Received:
    0
    OK, this has been resolved following some guidance receive in another community I cross-posted this to and now the least I can do for it is to update this thread with the solution along with my apologies.

    As it seems, the makecert I was trying to execute that command was not the correct one. The correct one comes bundled with the Windows SDK I've already linked and it has version: 6.1.7600.16385 and SHA1SUM: 7fd7f36b5acbe69de6c966b397341fd1ddbb04a1.

    With that particular makecert the above command with those options (and even more advanced ones) are being carried out flawlessly.
     
    olspookishmagus, Oct 11, 2017
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. jago45

    Program title no longer appears under "Programs"

    jago45, Jul 3, 2012, in forum: Windows XP Help and Support
    Replies:
    0
    Views:
    761
    jago45
    Jul 3, 2012
  2. Straitsfan

    navigating icons with tab key with open window

    Straitsfan, Feb 21, 2013, in forum: Windows XP Help and Support
    Replies:
    4
    Views:
    772
    Elizabeth23
    Feb 21, 2013
  3. cocoa3c

    "My Pictures" screen saver no longer works

    cocoa3c, Aug 2, 2013, in forum: Windows XP Help and Support
    Replies:
    1
    Views:
    689
    Elizabeth23
    Aug 3, 2013
  4. draconianfire
    Replies:
    1
    Views:
    642
    Elizabeth23
    Mar 11, 2014
  5. ju1234
    Replies:
    0
    Views:
    671
    ju1234
    Mar 12, 2014
  6. Ebspencer

    I installed windows 2000 and now windows xp no longer works

    Ebspencer, Jun 8, 2016, in forum: Windows XP Help and Support
    Replies:
    4
    Views:
    490
    goldie
    Sep 7, 2016
  7. LEBurns

    Is it possible to buy a new Windows XP machine?

    LEBurns, Mar 22, 2017, in forum: Windows XP Hardware
    Replies:
    21
    Views:
    1,761
    Compaq_8200_Elite
    Jul 15, 2017
  8. THX1138

    Possible to flip screen upside down with XP Embedded?

    THX1138, May 28, 2017, in forum: Windows XP General Discussion
    Replies:
    1
    Views:
    157
    Josbeph
    Jun 29, 2017
Loading...