Signing Windows application on Linux-based distros

前端 未结 3 1276
萌比男神i
萌比男神i 2020-11-30 21:57

I have prepared an application and website where the customer can set several options for this application before he downloads it. Settings are stored in binary format on th

3条回答
  •  余生分开走
    2020-11-30 22:10

    You can try osslsigncode

    To sign an EXE or MSI file you can now do:

    osslsigncode sign -certs  -key  \
            -n "Your Application" -i http://www.yourwebsite.com/ \
            -in yourapp.exe -out yourapp-signed.exe
    

    or if you are using a PEM or PVK key file with a password together with a PEM certificate:

    osslsigncode sign -certs  \
            -key  -pass  \
            -n "Your Application" -i http://www.yourwebsite.com/ \
            -in yourapp.exe -out yourapp-signed.exe
    

    or if you want to add a timestamp as well:

    osslsigncode sign -certs  -key  \
            -n "Your Application" -i http://www.yourwebsite.com/ \
            -t http://timestamp.verisign.com/scripts/timstamp.dll \
            -in yourapp.exe -out yourapp-signed.exe
    

    You can use a certificate and key stored in a PKCS#12 container:

    osslsigncode sign -pkcs12  -pass  \
            -n "Your Application" -i http://www.yourwebsite.com/ \
            -in yourapp.exe -out yourapp-signed.exe
    

    To sign a CAB file containing java class files:

    osslsigncode sign -certs  -key  \
            -n "Your Application" -i http://www.yourwebsite.com/ \
            -jp low \
            -in yourapp.cab -out yourapp-signed.cab
    

提交回复
热议问题