VirtualBox

Ignore:
Timestamp:
Sep 16, 2022 12:00:23 PM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
153654
Message:

Add/Nt/Installer,Add/Nt/Tools,Add/Makefile,/Config.kmk: Use bldRTSignTool to extract the root certificates and always ship+install them, except for the legacy TS CA which won't be installed on W10. bugref:8691

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/WINNT/tools/Makefile.kmk

    r96692 r96766  
    4444
    4545#
    46 # Install all the certificates we use here.
    47 #
    48 INSTALLS += AdditionsInstCertFiles
    49 AdditionsInstCertFiles_TEMPLATE = VBoxGuestR3Exe
    50 AdditionsInstCertFiles_SOURCES  =
    51 AdditionsInstCertFiles_CLEAN    =
    52 ifdef VBOX_SIGNING_MODE
    53  define def_VBoxAdditionsInstCertFiles
    54   AdditionsInstCertFiles_SOURCES += $$(AdditionsInstCertFiles_0_OUTDIR)/$(1)=>$1
    55   AdditionsInstCertFiles_CLEAN   += $$(AdditionsInstCertFiles_0_OUTDIR)/$(1)
    56   $$$$(AdditionsInstCertFiles_0_OUTDIR)/$(1): $$(2) | $$$$(dir $$$$@) $(VBOX_RTSIGNTOOL)
    57         $(QUIET)$(RM) -f -- "$$@"
    58         $(VBOX_RTSIGNTOOL) extract-exe-signer-cert --signature-index $3 --exe "$$<" --output "$$@" --der
    59  endef
    60 
    61  if !defined(VBOX_CERTIFICATE_SHA2_SUBJECT_NAME) && !$(intersects win all 1,$(VBOX_WITH_CORP_CODE_SIGNING))
    62   $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox.cer,$(VBOX_PATH_ADDITIONS)/VBoxGuest.sys,0)
    63  else
    64   $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox-sha1.cer,$(VBOX_PATH_ADDITIONS)/VBoxGuest.sys,0)
    65   $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox-sha256.cer,$(VBOX_PATH_ADDITIONS)/VBoxGuest.sys,1)
    66   if $(intersects win_planb,$(VBOX_WITH_CORP_CODE_SIGNING))
    67    $(evalcall2 def_VBoxAdditionsInstCertFiles,vbox-sha256-r3.cer,$(VBOX_PATH_ADDITIONS)/VBoxCertUtil.exe,1)
    68   endif
    69  endif
    70  ifdef VBOX_WITH_VBOX_LEGACY_TS_CA
    71 AdditionsInstCertFiles_SOURCES += $(VBOX_LEGACY_TS_CA_FILE)=>vbox-legacy-timestamp-ca.cer
    72  endif
    73  ifdef VBOX_WITH_GA_ROOT_CERTS_INCLUDED
    74   ifdef VBOX_WITH_GA_ROOT_VERISIGN_G5
    75 AdditionsInstCertFiles_SOURCES += \
    76         $(VBOX_PATH_SRC_CERTIFICATES)/CaRoot-VeriSignPca3G5-18dad19e267de8bb4a2158cdcc6b3b4a.crt=>root-versign-pca3-g5.cer
    77   endif
    78   ifdef VBOX_WITH_GA_ROOT_DIGICERT_ASSURED_ID
    79 AdditionsInstCertFiles_SOURCES += \
    80         $(VBOX_PATH_SRC_CERTIFICATES)/CaRoot-DigiCertAssuredIDRootCA-0ce7e0e517d846fe8fe560fc1bf03039.crt=>root-digicert-assured-id.cer
    81   endif
    82   ifdef VBOX_WITH_GA_ROOT_DIGICERT_HIGH_ASSURANCE_EV
    83 AdditionsInstCertFiles_SOURCES += \
    84         $(VBOX_PATH_SRC_CERTIFICATES)/CaRoot-DigiCertHighAssuranceEVRootCA-02ac5c266a0b409b8f0b79f2ae462577.crt=>root-digicert-high-assurance-ev.cer
    85   endif
    86  endif
    87 endif
    88 
    89 #
    9046# Install the registry file for bypassing the Windows 11 installer checks.
    9147#
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