Cov txheej txheem:

Lub npe alias hauv SSL daim ntawv pov thawj yog dab tsi?
Lub npe alias hauv SSL daim ntawv pov thawj yog dab tsi?

Video: Lub npe alias hauv SSL daim ntawv pov thawj yog dab tsi?

Video: Lub npe alias hauv SSL daim ntawv pov thawj yog dab tsi?
Video: maiv xis Xyooj nco hauv tshuaj kuab taw nyuv 2024, Hlis ntuj nqeg
Anonim

A daim ntawv pov thawj alias yog cov npe muab rau CA daim ntawv pov thawj nyob rau hauv lub keystore. Txhua qhov nkag hauv keystore muaj ib qho npe los pab txheeb xyuas nws. Cov daim ntawv pov thawj alias qhia txog qhov npe ntawm ib qho tshwj xeeb daim ntawv pov thawj nyob rau hauv lub kaw lus keystore uas yuav tsum tau siv thaum ua ib qho HTTPS kev twb kev txuas mus rau qhov teev URL.

Kuj paub, kuv yuav nrhiav tau kuv daim ntawv pov thawj lub npe 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:

Tsis tas li ntawd, kuv yuav ua li cas thiaj tau txais lub npe alias los ntawm JKS cov ntaub ntawv? 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!

Ib sab ntawm no, dab tsi yog server SSL tus lej tseem ceeb?

ssl . tus yuam sij - npe : cov npe uas qhia cov tus yuam sij hauv tus yuam sij khw. server . ssl . tus yuam sij -password: tus password siv los nkag rau hauv tus yuam sij hauv tus yuam sij khw.

Dab tsi yog alias hauv Keytool hais kom ua?

Ib npe yog teev thaum koj ntxiv ib qho chaw rau lub keystore siv lub -genkey lus txib los tsim ib tug khub tseem ceeb (public thiab private key) los yog -import lus txib ntxiv ib daim ntawv pov thawj los yog daim ntawv pov thawj saw rau cov npe ntawm cov ntawv pov thawj ntseeg siab. Tom qab ntawd keytool commands yuav tsum siv qhov no tib yam npe xa mus rau qhov chaw.

Pom zoo: