diff --git a/services/key_enable/BUILD.gn b/services/key_enable/BUILD.gn index 3a5d642df3bc20d1b8700a842db733eb31ec144c..581e4eb80797e88196bebde49843d8838c067d29 100644 --- a/services/key_enable/BUILD.gn +++ b/services/key_enable/BUILD.gn @@ -71,7 +71,11 @@ ohos_prebuilt_etc("trusted_cert_path") { } ohos_prebuilt_etc("trusted_cert_path_test") { - source = "config/trusted_cert_path_test.json" + if (defined(sign_hap_py_path)) { + source = "config/trusted_cert_path_test.json" + } else { + source = "config/not_sign_hap_py_path/trusted_cert_path_test.json" + } part_name = "code_signature" subsystem_name = "security" relative_install_dir = "security" diff --git a/services/key_enable/config/not_sign_hap_py_path/trusted_cert_path_test.json b/services/key_enable/config/not_sign_hap_py_path/trusted_cert_path_test.json new file mode 100644 index 0000000000000000000000000000000000000000..a5c3bb3d7072e28af4cf68257311c00167371f75 --- /dev/null +++ b/services/key_enable/config/not_sign_hap_py_path/trusted_cert_path_test.json @@ -0,0 +1,90 @@ +{ + "trust-profile-path":[ + { + "mode":"developer", + "type":"", + "subject":"C=CN, O=Huawei, OU=HOS AppGallery, CN=HOS Profile Management", + "issuer":"C=CN, O=Huawei, OU=Huawei CBG, CN=Huawei CBG Software Signing Service CA Test", + "max-certs-path":3 + }, + { + "mode":"developer", + "type":"", + "subject":"C=CN, O=Huawei CBG, OU=HOS Development Team, CN=HOS Application Provision Profile Release", + "issuer":"C=CN, O=Huawei, OU=Huawei CBG, CN=Huawei CBG Software Signing Service CA Test", + "max-certs-path":3 + }, + { + "mode":"debug", + "type":"", + "subject":"C=CN, O=Huawei, OU=HOS AppGallery, CN=HOS Profile Management Debug", + "issuer":"C=CN, O=Huawei, OU=Huawei CBG, CN=Huawei CBG Software Signing Service CA Test", + "max-certs-path":3 + }, + { + "mode":"debug", + "type":"", + "subject":"C=CN, O=Huawei CBG, OU=HOS Development Team, CN=HOS Application Provision Profile Release_Debug", + "issuer":"C=CN, O=Huawei, OU=Huawei CBG, CN=Huawei CBG Software Signing Service CA Test", + "max-certs-path":3 + } + ], + "trust-cert-path":[ + { + "mode":"Release", + "type":"Authed", + "subject":"C=CN, O=Huawei, OU=HOS AppGallery, CN=HOS AppGallery Application Release", + "issuer":"C=CN, O=Huawei, OU=Huawei CBG, CN=Huawei CBG Software Signing Service CA Test", + "max-certs-path":3 + }, + { + "mode":"Release", + "type":"Authed", + "subject":"ALL", + "issuer":"C=CN, O=Huawei, OU=Huawei CBG, CN=Huawei CBG Software Signing Service CA Test", + "max-certs-path":3 + }, + { + "mode":"Release", + "type":"Authed", + "subject":"C=CN, O=OpenHarmony, OU=OpenHarmony Team, CN=OpenHarmony Application Release", + "issuer":"C=CN, O=OpenHarmony, OU=OpenHarmony Team, CN=OpenHarmony Application CA", + "max-certs-path":3 + }, + { + "mode":"Release", + "type":"Block", + "subject":"C=CN, O=Huawei, OU=Huawei CBG, CN=HOS Application Provision Debug V2", + "issuer":"C=CN, O=Huawei, OU=Huawei CBG, CN=Huawei CBG Software Signing Service CA Test", + "max-certs-path":3 + }, + { + "mode":"Release", + "type":"Block", + "subject":"", + "issuer":"", + "max-certs-path":3 + }, + { + "mode":"Dev", + "type":"Platform", + "subject":"C=CN, O=Huawei, OU=Huawei CBG, CN=HOS Application Provision Debug V2", + "issuer":"C=CN, O=Huawei, OU=Huawei CBG, CN=Huawei CBG Software Signing Service CA Test", + "max-certs-path":3 + }, + { + "mode":"Dev", + "type":"Debug", + "subject":"", + "issuer":"", + "max-certs-path":3 + }, + { + "mode":"Dev", + "type":"Authed", + "subject":"C=CN, O=Organization, OU=Unit, CN=ide_demo_app", + "issuer":"C=CN, O=OpenHarmony, OU=OpenHarmony Team, CN=OpenHarmony Application CA", + "max-certs-path":3 + } + ] +} \ No newline at end of file