none
PowerShell : Check Timestamp server availability before signing scripts RRS feed

  • Question

  • Hi,

    I want to sign PowerShell scripts using a Timestamp server (verisign, globalsign or comodo).In my script I would like to check the server availability before proceeding to the signature (in order to choose another server in case of one is down)

    I tried to do that with the cmdlet invoke-Webrequest but It returns an error 400 : bad request.

    Is there any way to check that availability, or should I have to choose another option like handling error from set-authenticode command or check the validity of the timestamp at the end ?

    Thank you for any help !!

    • Moved by Bill_Stewart Monday, March 7, 2016 8:34 PM Abandoned
    Wednesday, January 20, 2016 4:22 PM

All replies

  • The signing tool will do that for you.


    \_(ツ)_/

    Wednesday, January 20, 2016 4:30 PM
  • Hi and thank you for you answer.

    I will check the timestamp after the signature instead of choosing a server before signing.

    I have already tried and it works.

    Thursday, January 21, 2016 2:23 PM