golang.org/x/sys@v0.20.1-0.20240517151509-673e0f94c16d/windows/testdata/README (about)

     1  This folder contains various pre-generated artifacts for testing. Descriptions
     2  of each follow below.
     3  
     4  ## ev-signed-file.exe
     5  
     6  This was generated with:
     7  
     8    int main(void)
     9    {
    10        puts("Hello Gophers!");
    11        return 0;
    12    }
    13  
    14  And then a simple clang/mingw compilation:
    15  
    16    i686-w64-mingw32-gcc -Os -s a.c
    17  
    18  After, it was copied to a Windows computer where it was signed with an EV
    19  certificate using:
    20  
    21    signtool sign /sha1 <ID of certificate> /fd sha256 /tr http://timestamp.digicert.com /td sha256 /d "Go Project EV Signing Test" a.exe