How to add digital signatures to my scripts

Welcome Forums General PowerShell Q&A How to add digital signatures to my scripts

This topic contains 1 reply, has 2 voices, and was last updated by

 
Member
3 years, 7 months ago.

  • Author
    Posts
  • #25964

    Inactive
    Points: 0
    Rank: Member

    Hi,
    Firstly, thanks to PowerShell.Org which helped to complete my scripts successfully; as a final step I want to add the digital signatures to the attached files , could someone please help me on this.

  • #25967

    Member
    Points: 0
    Rank: Member

    You will need a code-signing certificate for that. In order to be of any use for public sharing, that certificate will need to be issued by a trusted authority, which may cost you a bit of money, depending on your needs. (There are, however, some authorities that will issue free certificates for open-source projects, such as https://www.globalsign.com/en/ssl/ssl-open-source/ . I don't know if they'll issue a code-signing cert this way, but it's worth asking.)

    Once you have a certificate, you just use the Set-AuthenticodeSignature cmdlet. As an example, here's the code I use to sign my scripts:

The topic ‘How to add digital signatures to my scripts’ is closed to new replies.