Cov txheej txheem:

Kuv yuav sau daim ntawv pov thawj hauv Keytool li cas?
Kuv yuav sau daim ntawv pov thawj hauv Keytool li cas?

Video: Kuv yuav sau daim ntawv pov thawj hauv Keytool li cas?

Video: Kuv yuav sau daim ntawv pov thawj hauv Keytool li cas?
Video: Lis Yaj Pov : Hauv Sab Ntsuj Plig 2024, Kaum ib hlis
Anonim

Java Keytool Commands rau Kev Tshawb Fawb:

  1. Tshawb xyuas ib leeg daim ntawv pov thawj : keytool -printcert -v -file mydomain. crt.
  2. Tshawb xyuas qhov twg daim ntawv pov thawj yog nyob rau hauv Java keystore : keytool - lis -v - keystore keystore . jks.
  3. Tshawb xyuas ib qho tshwj xeeb keystore nkag mus siv ib tug alias: keytool - lis -v - keystore keystore . jks -alias mydomain.

Raws li txoj cai, kuv yuav import daim ntawv pov thawj siv Keytool li cas?

Khiav Java keytool hais kom ua kom import daim ntawv pov thawj mus rau hauv keystore

  1. Qhib cov lus hais kom sai thiab hloov mus rau cov npe hauv qab no: injre6.0in.
  2. Khiav cov kab hais kom ua hauv qab no.
  3. Nkag mus yog thaum tau hais kom ntseeg lossis ntxiv daim ntawv pov thawj.

Ib tug kuj yuav nug, Kuv yuav sau tag nrho cov npe npe hauv keystore li cas? Teev npe Aliases Hauv Android Keystore Cov Ntaub Ntawv Nrog Keytool

  1. Qhib Terminal Window, Khiav Cov Lus txib no: keytool -list -keystore /location/of/your/com.example.keystore. Xyuas kom tseeb tias "keytool" yog nyob rau hauv koj PATH, lossis "cd" rau hauv "tools" directory qhov twg koj cov ntaub ntawv hauv SDK.
  2. Sau koj tus password rau keystore thaum raug ceeb toom (koj tsis nco qab lawm, koj puas tau?
  3. Saib cov txiaj ntsig!

Kuj tseem paub yog, kuv yuav sau ib lub keystore li cas?

1 Teb

  1. Kuv xav tias koj tuaj yeem khiav cov lus txib hauv qab no los sau cov ntsiab lus ntawm koj cov ntaub ntawv keystore.
  2. keytool -v -list -keystore.keystore.
  3. Yog tias koj tab tom nrhiav rau ib lub npe tshwj xeeb, koj tuaj yeem teev nws hauv cov lus txib:
  4. keytool -list -keystore.keystore -alias foo.
  5. Yog tias tsis pom lub alias, nws yuav pom qhov kev zam:

Kuv yuav saib daim ntawv pov thawj hauv Truststore li cas?

Mus xyuas lub truststore rau daim ntawv pov thawj

  1. Los ntawm cov lus txib tam sim lossis lub plhaub qhov rais, hloov koj cov npe ua haujlwm rau.
  2. Ntxiv rau hauv phau ntawv teev npe rau PATH ib puag ncig hloov pauv:
  3. Tom qab PATH hloov pauv tau teeb tsa, ua raws li cov lus txib hauv qab no los tso cov ntsiab lus rau hauv cov ntaub ntawv certs.txt:
  4. Xyuas cov ntawv pov thawj.

Pom zoo: