explicitText=This certificate is used to sign untested drivers that have not passed the Windows Hardware Quality Labs (WHQL) testing process. This certificate and drivers signed with this certificate are intended for use in test environments only, and are not intended for use in any other context. Vendors who distribute this certificate or drivers signed with this certificate outside a test environment may be in violation of their driver signing agreement. Vendors who have their drivers signed with this certificate do so at their own risk. In particular, Microsoft assumes no liability for any damages that may result from the distribution of this certificate or drivers signed with this certificate outside the test environment described in a vendors driver signing agreement.
[ testroot ]
dir = testroot
certs = $dir
new_certs_dir = $dir/testroot.db.certs
database = $dir/testroot.db.index
serial = $dir/testroot.db.serial
RANDFILE = $dir/testroot.db.rand
certificate = $dir/testroot.pem
private_key = $dir/testroot.key
default_days = 3650
default_crl_days = 30
default_md = md5
preserve = no
policy = generic_policy0
[ generic_policy0 ]
countryName = optional
stateOrProvinceName = optional
localityName = optional
organizationName = optional
organizationalUnitName = optional
commonName = optional
emailAddress = optional
[ sub_ca_ext ]
certificatePolicies=ia5org,@certpol1_sect
keyUsage=nonRepudiation, keyCertSign, cRLSign
authorityKeyIdentifier=keyid:always
subjectKeyIdentifier=hash
basicConstraints=critical,CA:TRUE
[certpol1_sect]
policyIdentifier=1.3.6.1.4.1.311.10.3.7
userNotice.0=@certpol1_sect_notice1_sect
[certpol1_sect_notice1_sect]
explicitText=This certificate is used to sign untested drivers that have not passed the Windows Hardware Quality Labs (WHQL) testing process. This certificate and drivers signed with this certificate are intended for use in test environments only, and are not intended for use in any other context. Vendors who distribute this certificate or drivers signed with this certificate outside a test environment may be in violation of their driver signing agreement. Vendors who have their drivers signed with this certificate do so at their own risk. In particular, Microsoft assumes no liability for any damages that may result from the distribution of this certificate or drivers signed with this certificate outside the test environment described in a vendors driver signing agreement.
explicitText=This certificate is used to sign untested drivers that have not passed the Windows Hardware Quality Labs (WHQL) testing process. This certificate and drivers signed with this certificate are intended for use in test environments only, and are not intended for use in any other context. Vendors who distribute this certificate or drivers signed with this certificate outside a test environment may be in violation of their driver signing agreement. Vendors who have their drivers signed with this certificate do so at their own risk. In particular, Microsoft assumes no liability for any damages that may result from the distribution of this certificate or drivers signed with this certificate outside the test environment described in a vendors driver signing agreement.
[ testpca ]
dir = testpca
certs = $dir
new_certs_dir = $dir/testpca.db.certs
database = $dir/testpca.db.index
serial = $dir/testpca.db.serial
RANDFILE = $dir/testpca.db.rand
certificate = $dir/testpca.pem
private_key = $dir/testpca.key
default_days = 3650
default_crl_days = 30
default_md = md5
preserve = no
policy = generic_policy1
[ generic_policy1 ]
countryName = optional
stateOrProvinceName = optional
localityName = optional
organizationName = optional
organizationalUnitName = optional
commonName = optional
emailAddress = optional
[sub_ca_ext]
certificatePolicies=ia5org,@certpol2_sect
keyUsage=digitalSignature, keyCertSign, cRLSign
authorityKeyIdentifier=keyid:always
subjectKeyIdentifier=hash
basicConstraints=critical,CA:TRUE
[certpol2_sect]
policyIdentifier=1.3.6.1.4.1.311.10.3.6
userNotice.0=@certpol2_sect_notice2_sect
[certpol2_sect_notice2_sect]
explicitText=This certificate is used to sign untested drivers that have not passed the Windows Hardware Quality Labs (WHQL) testing process. This certificate and drivers signed with this certificate are intended for use in test environments only,and are not intended for use in any other context. Vendors who distribute this certificate or drivers signed with thiscertificate outside a test environment may be in violation of their driver signing agreement. Vendors who have their drivers signed with this certificate do so at their own risk. In particular, Microsoft assumes no liability for any damages that may result from the distribution of this certificate or drivers signed with this certificate outside the test environment described in a vendors driver signing agreement.
2.3、vbl03ca.conf
oid_section = xca_oids
[ xca_oids ]
dom = 1.3.6.1.4.1.311.20.2
MsCaV = 1.3.6.1.4.1.311.21.1
msEFSFR = 1.3.6.1.4.1.311.10.3.4.1
iKEIntermediate = 1.3.6.1.5.5.8.2.2
nameDistinguisher = 0.2.262.1.10.7.20
id-kp-eapOverPPP = 1.3.6.1.5.5.7.3.13
id-kp-eapOverLAN = 1.3.6.1.5.5.7.3.14
[ req ]
default_bits = 1024
default_keyfile = privkey.pem
distinguished_name = xca_dn2
x509_extensions = xca_extensions2
req_extensions = xca_extensions2
string_mask = MASK:0x2002
utf8 = yes
prompt = no
[ ca ]
default_ca = vbl03ca
[ xca_dn2 ]
0.CN=Microsoft Windows VBL03CA
[ xca_extensions2 ]
certificatePolicies=ia5org,@certpol2_sect
keyUsage=digitalSignature, keyCertSign, cRLSign
subjectKeyIdentifier=hash
basicConstraints=critical,CA:TRUE
[certpol2_sect]
policyIdentifier=1.3.6.1.4.1.311.10.3.6
userNotice.0=@certpol2_sect_notice2_sect
[certpol2_sect_notice2_sect]
explicitText=This certificate is used to sign untested drivers that have not passed the Windows Hardware Quality Labs (WHQL) testing process. This certificate and drivers signed with this certificate are intended for use in test environments only,and are not intended for use in any other context. Vendors who distribute this certificate or drivers signed with thiscertificate outside a test environment may be in violation of their driver signing agreement. Vendors who have their drivers signed with this certificate do so at their own risk. In particular, Microsoft assumes no liability for any damages that may result from the distribution of this certificate or drivers signed with this certificate outside the test environment described in a vendors driver signing agreement.
在导入新证书“driver.pfx”之前,先把原证书卸载了。在windows“运行”中执行“certmgr.msc”,找到对应的证书,一共有4个证书。“testroot”在“受信任的根证书颁发机构”里面;“testpca”和“vbl03ca”在“中级证书颁发机构”里面;“driver”(全称叫“Microsoft Windows Source Kit Test”)在“个人”里面。
修改razzle 中的 @rem Set the SignTool_Sign variable appropriately. if "%_ArgOffline%" == "true" ( @rem Offline: Use the driver.pfx file for test signing (only available in OEM source kit) @SET SIGNTOOL_SIGN=/f "%RazzleToolPath%\driver.pfx" /d "Microsoft Windows TEST" /du "http://ntbld"
SET SIGNTOOL_SIGN=/a /uw /r "Microsoft Test Root Authority" /d "Microsoft Windows TEST" /du "http://ntbld" ) else ( @rem Online: Use autoenrolled signing cert in cert store (only available to internal Microsoft users) SET SIGNTOOL_SIGN=/a /uw /r "Microsoft Test Root Authority" /d "Microsoft Windows TEST" /du "http://ntbld" ) 这段代码注释掉 使用系统中的证书签名就行了 SET SIGNTOOL_SIGN=/a /uw /r "Microsoft Test Root Authority" /d "Microsoft Windows TEST" /du "http://ntbld"