VirtualBox

Changeset 105140 in vbox


Ignore:
Timestamp:
Jul 4, 2024 9:23:50 AM (5 months ago)
Author:
vboxsync
Message:

/Config.kmk: Experiment with modification of "plan B" variant of Windows code signing which fails for a while now for .cat files (could be due to extension checking).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Config.kmk

    r105117 r105140  
    44554455  # SHA-1 cert, we have to get creative:
    44564456  #   1. Sign $1 using local SHA-1 certificate.
    4457   #   2. Make temporary copy of $1 as $1.ccs
    4458   #   3. Do SHA-256 corp code signing of $1.ccs
    4459   #   4. Add the SHA-256 signature from $1.ccs to $1 using bldRTSignTool.
    4460   #   5. Delete $1.ccs.
     4457  #   2. Make temporary copy of $1 as $1.dual
     4458  #   3. Do SHA-256 corp code signing of $1
     4459  #   4. Add the SHA-256 signature from $1 to $1.dual using bldRTSignTool.
     4460  #   5. Move $1.dual to $1.
    44614461  #
    44624462  # @param 1  The file to sign.
     
    44784478        "$(1)" \
    44794479        $(if-expr "$5" == "", \
    4480                 $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(RM) -f -- "$1.ccs" \
    4481         $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(CP) -- "$1" "$1.ccs" \
    4482         $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(call VBOX_CCS_SIGN_CMD,driver$(if-expr "$3" == "/ph",_pagehash,),$1.ccs,,-digest_algo SHA2) \
    4483         $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(VBOX_RTSIGNTOOL) add-nested-$(if-expr "$(suffix $1)" == ".cat",cat,exe)-signature -v "$1" "$1.ccs" \
    4484         $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(RM) -f -- "$1.ccs" \
     4480                $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(RM) -f -- "$1.dual" \
     4481        $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(CP) -- "$1" "$1.dual" \
     4482        $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(call VBOX_CCS_SIGN_CMD,driver$(if-expr "$3" == "/ph",_pagehash,),$1,,-digest_algo SHA2) \
     4483        $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(VBOX_RTSIGNTOOL) add-nested-$(if-expr "$(suffix $1)" == ".cat",cat,exe)-signature -v "$1.dual" "$1" \
     4484        $(if-expr "$4" == "2",$$(NLTAB),$(NLTAB))$(MV) -f -- "$1.dual" "$1"\
    44854485        ,)
    44864486
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette