Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 16 of 16) sorted by relevance

/build/make/tools/signapk/test/
Drun25 cert := out/key1.pem macro
26 out/signed-$(package): $(package) $(cert)
30 -key $(cert).pk -cert $(cert) -tempdir out
/build/make/tools/releasetools/
Dcheck_ota_package_signature.py37 def CertUsesSha256(cert): argument
40 cmd = ['openssl', 'x509', '-text', '-noout', '-in', cert]
52 def VerifyPackage(cert, package): argument
68 print('Certificate: %s' % (cert,))
96 use_sha256 = CertUsesSha256(cert)
123 cmd = ['openssl', 'rsautl', '-verify', '-certin', '-inkey', cert,
141 def VerifyAbOtaPayload(cert, package): argument
153 pubkey_fp.write(common.ExtractPublicKey(cert))
Dcheck_target_files_signatures103 def GetCertSubject(cert): argument
108 out, err = p.communicate(cert)
147 cert = common.ParseCertificate(f.read())
151 cert_sha1 = common.sha1(cert).hexdigest()
152 cert_subject = GetCertSubject(cert)
176 cert = common.ParseCertificate(out.decode())
177 if not cert:
180 return cert
209 cert = CertFromPKCS7(pkcs7, filename)
210 if not cert:
[all …]
Dcheck_target_files_signatures.py103 def GetCertSubject(cert): argument
108 out, err = p.communicate(cert)
147 cert = common.ParseCertificate(f.read())
151 cert_sha1 = common.sha1(cert).hexdigest()
152 cert_subject = GetCertSubject(cert)
176 cert = common.ParseCertificate(out.decode())
177 if not cert:
180 return cert
209 cert = CertFromPKCS7(pkcs7, filename)
210 if not cert:
[all …]
Dsign_target_files_apks.py196 for apk, cert in certmap.items():
197 certmap[apk] = OPTIONS.key_map.get(cert, cert)
200 for apk, cert in OPTIONS.extra_apks.items():
201 if not cert:
202 cert = "PRESIGNED"
203 certmap[apk] = OPTIONS.key_map.get(cert, cert)
Dsign_target_files_apks196 for apk, cert in certmap.items():
197 certmap[apk] = OPTIONS.key_map.get(cert, cert)
200 for apk, cert in OPTIONS.extra_apks.items():
201 if not cert:
202 cert = "PRESIGNED"
203 certmap[apk] = OPTIONS.key_map.get(cert, cert)
Dcommon.py2006 cert = matches["CERT"]
2013 if cert in SPECIAL_CERT_STRINGS and not privkey:
2014 certmap[name] = cert
2015 elif (cert.endswith(OPTIONS.public_key_suffix) and
2017 cert[:-public_key_suffix_len] == privkey[:-private_key_suffix_len]):
2018 certmap[name] = cert[:-public_key_suffix_len]
3026 cert = base64.b64decode("".join(cert_buffer))
3027 return cert
3030 def ExtractPublicKey(cert): argument
3046 cmd = ['openssl', 'x509', '-pubkey', '-noout', '-in', cert]
[all …]
Dtest_common.py914 cert = os.path.join(self.testdata_dir, 'testkey.x509.pem')
917 self.assertEqual(pubkey_fp.read(), common.ExtractPublicKey(cert))
934 cert = os.path.join(self.testdata_dir, 'testkey.x509.pem')
936 cmd = ['openssl', 'x509', '-in', cert, '-outform', 'DER']
942 with open(cert) as cert_fp:
/build/make/target/product/security/
DAndroid.bp9 name: "fsverity-release-cert-der",
/build/soong/java/
Dapp.go402 cert := android.SrcIsModule(a.getCertString(ctx))
403 if cert != "" {
404 ctx.AddDependency(ctx.Module(), certificateTag, cert)
407 for _, cert := range a.appProperties.Additional_certificates {
408 cert = android.SrcIsModule(cert)
409 if cert != "" {
410 ctx.AddDependency(ctx.Module(), certificateTag, cert)
1207 cert := String(c.properties.Certificate)
1209 Pem: android.PathForModuleSrc(ctx, cert+".x509.pem"),
1210 Key: android.PathForModuleSrc(ctx, cert+".pk8"),
[all …]
/build/make/tools/signapk/src/com/android/signapk/
DSignApk.java24 import org.bouncycastle.cert.jcajce.JcaCertStore;
70 import java.security.cert.CertificateEncodingException;
71 import java.security.cert.CertificateFactory;
72 import java.security.cert.X509Certificate;
141 private static int getDigestAlgorithmForOta(X509Certificate cert) { in getDigestAlgorithmForOta() argument
142 String sigAlg = cert.getSigAlgName().toUpperCase(Locale.US); in getDigestAlgorithmForOta()
150 "\" in cert [" + cert.getSubjectDN()); in getDigestAlgorithmForOta()
160 X509Certificate cert, int hash) { in getJcaSignatureAlgorithmForOta() argument
173 String keyAlgorithm = cert.getPublicKey().getAlgorithm(); in getJcaSignatureAlgorithmForOta()
/build/soong/apex/
Dbuilder.go695 cert := String(a.properties.Certificate)
696 if cert == "" {
702 a.container_certificate_file = defaultDir.Join(ctx, cert+".x509.pem")
703 a.container_private_key_file = defaultDir.Join(ctx, cert+".pk8")
Dapex.go1460 cert := android.SrcIsModule(a.getCertString(ctx))
1461 if cert != "" {
1462 ctx.AddDependency(ctx.Module(), certificateTag, cert)
/build/make/core/tasks/check_boot_jars/
Dpackage_allowed_list.txt26 java\.security\.cert
60 javax\.security\.cert
/build/make/target/product/
Dbase_system.mk85 fsverity-release-cert-der \
/build/soong/bpfix/bpfix/
Dbpfix.go651 if cert, ok := mod.GetProperty("certificate"); ok {
652 if certStr, ok := cert.Value.(*parser.String); ok {