Home
last modified time | relevance | path

Searched refs:certificate (Results 1 – 24 of 24) sorted by relevance

/tools/apksig/src/apksigner/java/com/android/apksigner/
Dhelp_lineage.txt4 This can be used to revoke capabilities of a previous signing certificate once the install base
5 has been migrated to the new signing certificate.
24 certificate to stdout.
34 --signer Indicates the start of a new signing certificate to be modified.
39 private key and certificate must be specified. There are two ways to provide
40 the signer's private key and certificate: (1) Java KeyStore (see --ks), or
41 (2) private key file in PKCS #8 format and certificate file in X.509 format
44 The --set-xx capability options allow an older signing certificate to still be
46 by a newer signing certificate. By default, the new signer will have all
48 to act as a default level of trust when moving to a newer signing certificate.
[all …]
Dhelp_rotate.txt12 to rotate the signing certificate for an APK.
31 signing certificate history may be extended.
37 There are two ways to provide the signer's private key and certificate: (1) Java
38 KeyStore (see --ks), or (2) private key file in PKCS #8 format and certificate
41 The --set-xx capability options allow an older signing certificate to still be
43 by a newer signing certificate. By default, the new signer will have all
46 signing certificate. The capability options accept an optional boolean value of
58 --ks Load private key and certificate chain from the Java
63 --ks-key-alias Alias under which the private key and certificate are
146 --cert Load certificate chain from the specified file. The file
[all …]
Dhelp_sign.txt5 pair and a corresponding certificate. Typically, an APK is signed by just one
7 certificate.
105 --lineage Signing certificate history to use in the event that
107 Signature Scheme v3 supported signing certificate
165 There are two ways to provide the signer's private key and certificate: (1) Java
166 KeyStore (see --ks), or (2) private key file in PKCS #8 format and certificate
169 --ks Load private key and certificate chain from the Java
174 --ks-key-alias Alias under which the private key and certificate are
257 --cert Load certificate chain from the specified file. The file
289 3. Sign an APK using a private key and certificate stored as individual files:
[all …]
Dhelp.txt14 rotate Add a new signing certificate to the SigningCertificateLineage
Dhelp_verify.txt15 encoding of each signing certificate to stdout.
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zfile/
DApkCreatorFactory.java65 private final X509Certificate certificate; field in ApkCreatorFactory.CreationData
129 @Nullable X509Certificate certificate, in CreationData() argument
137 Preconditions.checkArgument((key == null) == (certificate == null), in CreationData()
143 this.certificate = certificate; in CreationData()
182 return certificate; in getCertificate()
DZFiles.java96 @Nullable X509Certificate certificate, in apk() argument
117 if (key != null && certificate != null) { in apk()
121 certificate, in apk()
/tools/apksig/src/main/java/com/android/apksig/internal/x509/
DCertificate.java47 public TBSCertificate certificate; field in Certificate
88 X509Certificate certificate; in parseCertificates() local
91 certificate = X509CertificateUtils.generateCertificate(encodedForm); in parseCertificates()
100 certificate = new GuaranteedEncodedFormX509Certificate(certificate, encodedForm); in parseCertificates()
101 result.add(certificate); in parseCertificates()
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DX509CertificateUtils.java107 X509Certificate certificate; in generateCertificate() local
109 certificate = (X509Certificate) certFactory.generateCertificate( in generateCertificate()
111 return certificate; in generateCertificate()
134 certificate = (X509Certificate) certFactory.generateCertificate( in generateCertificate()
142 new GuaranteedEncodedFormX509Certificate(certificate, originalEncoding); in generateCertificate()
196 X509Certificate certificate = (X509Certificate) certFactory.generateCertificate( in generateCertificates() local
202 new GuaranteedEncodedFormX509Certificate(certificate, originalEncoding); in generateCertificates()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/
DV4Signature.java72 public final byte[] certificate; // ASN.1 DER form field in V4Signature.SigningInfo
78 SigningInfo(byte[] apkDigest, byte[] certificate, byte[] additionalData, in SigningInfo() argument
81 this.certificate = certificate; in SigningInfo()
94 byte[] certificate = readBytes(buffer); in fromByteBuffer()
99 return new SigningInfo(apkDigest, certificate, additionalData, publicKey, in fromByteBuffer()
104 final int size = bytesSize(this.apkDigest) + bytesSize(this.certificate) + bytesSize( in toByteArray()
109 writeBytes(buffer, this.certificate); in toByteArray()
227 signingInfo.apkDigest) + bytesSize(signingInfo.certificate) + bytesSize( in getSignedData()
237 writeBytes(buffer, signingInfo.certificate); in getSignedData()
DV4SchemeVerifier.java191 if (signingInfo.certificate == null) { in parseAndVerifySignatureBlock()
196 final X509Certificate certificate; in parseAndVerifySignatureBlock() local
202 certificate = new GuaranteedEncodedFormX509Certificate( in parseAndVerifySignatureBlock()
203 X509CertificateUtils.generateCertificate(signingInfo.certificate), in parseAndVerifySignatureBlock()
204 signingInfo.certificate); in parseAndVerifySignatureBlock()
209 result.certs.add(certificate); in parseAndVerifySignatureBlock()
214 certificate.getPublicKey()); in parseAndVerifySignatureBlock()
218 certificatePublicKeyBytes = certificate.getPublicKey().getEncoded(); in parseAndVerifySignatureBlock()
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/sign/
DSigningExtension.java95 private final X509Certificate certificate; field in SigningExtension
136 @Nonnull X509Certificate certificate, in SigningExtension() argument
142 "CERT", privateKey, ImmutableList.of(certificate)).build(); in SigningExtension()
153 this.certificate = certificate; in SigningExtension()
228 expectedEncodedCert = certificate.getEncoded(); in isCurrentSignatureAsRequested()
/tools/asuite/atest/integration_tests/device_android_test/
DAndroid.bp27 certificate: "platform",
40 certificate: "platform",
/tools/apksig/src/main/java/com/android/apksig/
DSigningCertificateLineage.java654 public void updateSignerCapabilities(X509Certificate certificate, in updateSignerCapabilities() argument
656 if (certificate == null) { in updateSignerCapabilities()
662 if (lineageNode.signingCert.equals(certificate)) { in updateSignerCapabilities()
672 throw new IllegalArgumentException("Certificate (" + certificate.getSubjectDN() in updateSignerCapabilities()
1159 private SignerConfig(KeyConfig keyConfig, X509Certificate certificate) { in SignerConfig() argument
1161 mCertificate = certificate; in SignerConfig()
1204 public Builder(PrivateKey privateKey, X509Certificate certificate) { in Builder() argument
1206 mCertificate = certificate; in Builder()
1216 public Builder(KeyConfig keyConfig, X509Certificate certificate) { in Builder() argument
1218 mCertificate = certificate; in Builder()
DSourceStampVerifier.java448 X509Certificate certificate; in parseSigner() local
450 certificate = (X509Certificate) certFactory.generateCertificate( in parseSigner()
462 certificate = new GuaranteedEncodedFormX509Certificate(certificate, encodedCert); in parseSigner()
463 signerInfo.setSigningCertificate(certificate); in parseSigner()
522 for (Certificate certificate : certFactory.generateCertificates( in getApkContentDigestFromV1SigningScheme()
526 if (certificate instanceof X509Certificate) { in getApkContentDigestFromV1SigningScheme()
528 signerInfo.setSigningCertificate((X509Certificate) certificate); in getApkContentDigestFromV1SigningScheme()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v2/
DV2SchemeVerifier.java350 X509Certificate certificate; in parseSigner() local
352 certificate = X509CertificateUtils.generateCertificate(encodedCert, certFactory); in parseSigner()
365 certificate = new GuaranteedEncodedFormX509Certificate(certificate, encodedCert); in parseSigner()
366 result.certs.add(certificate); in parseSigner()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v3/
DV3SchemeVerifier.java469 X509Certificate certificate; in parseSigner() local
471 certificate = X509CertificateUtils.generateCertificate(encodedCert, certFactory); in parseSigner()
484 certificate = new GuaranteedEncodedFormX509Certificate(certificate, encodedCert); in parseSigner()
485 result.certs.add(certificate); in parseSigner()
DV3SigningCertificateLineage.java227 public static byte[] encodeSignedData(X509Certificate certificate, int flags) { in encodeSignedData() argument
229 byte[] prefixedCertificate = encodeAsLengthPrefixedElement(certificate.getEncoded()); in encodeSignedData()
/tools/test/mobly_snippets/gft/
DAndroid.bp33 certificate: "platform",
/tools/netsim/testing/tests/wifi/nsd/
DAndroid.bp31 certificate: "platform",
/tools/external_updater/
DAndroid.bp183 // certificate validation is not configured for that). Run those tests with
/tools/apksig/src/test/java/com/android/apksig/
DSigningCertificateLineageTest.java259 X509Certificate certificate = getSignerConfigFromResources( in testUpdateSignerCapabilitiesCertificateNotInLineageThrowsException() local
265 lineage.updateSignerCapabilities(certificate, newCapabilities)); in testUpdateSignerCapabilitiesCertificateNotInLineageThrowsException()
DApkSignerTest.java3732 for (X509Certificate certificate : certificates) { in getAllSubjectNamesFrom()
3736 result.append(certificate.getSubjectDN().getName()); in getAllSubjectNamesFrom()
/tools/apksig/src/main/java/com/android/apksig/internal/apk/
DApkSigningBlockUtils.java745 for (X509Certificate certificate : certificates) { in encodeCertificates()
746 result.add(certificate.getEncoded()); in encodeCertificates()