Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe4b3d7d authored by Alex Klyubin's avatar Alex Klyubin Committed by android-build-merger
Browse files

Merge "Clarify how to replace cert generated by Android Keystore." into nyc-dev

am: fa6d6832

* commit 'fa6d6832':
  Clarify how to replace cert generated by Android Keystore.

Change-Id: I9d4fcc0256d7ea3dece721456dee87464d852f3c
parents ba09bc57 fa6d6832
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -152,8 +152,10 @@ and {@link java.security.KeyPairGenerator} or

<p>Generating a new {@link java.security.PrivateKey} requires that
  you also specify the initial X.509 attributes that the self-signed
  certificate will have. You can replace the certificate at a later
  time with a certificate signed by a Certificate Authority.</p>
  certificate will have. You can use
  {@link java.security.KeyStore#setKeyEntry(String, java.security.Key, char[], java.security.cert.Certificate[]) KeyStore.setKeyEntry}
  to replace the certificate at a later time with a certificate signed
  by a Certificate Authority (CA).</p>

<p>To generate the key, use a {@link java.security.KeyPairGenerator}
  with {@link android.security.KeyPairGeneratorSpec}:</p>