Puas yog Truststore tib yam li keystore?
Puas yog Truststore tib yam li keystore?

Video: Puas yog Truststore tib yam li keystore?

Video: Puas yog Truststore tib yam li keystore?
Video: "Puag Yoj Mas" [OFFICIAL MUSIC VIDEO] - KT Killing Em 2024, Kaum ib hlis
Anonim

Qhov tseem ceeb sib txawv ntawm trustStore vs keyStore yog tias trustStore (raws li lub npe qhia) yog siv los khaws cov ntawv pov thawj los ntawm Trusted Certificate Authority (CA) uas yog siv los txheeb xyuas daim ntawv pov thawj los ntawm Server hauv SSL Kev Txuas Thaum keyStore yog siv los khaws tus yuam sij ntiag tug thiab tus kheej daim ntawv pov thawj uas qhov kev pab cuam

Yog li ntawd, koj puas tuaj yeem siv lub keystore ua Truststore?

Tsis muaj qhov sib txawv ntawm keystore thiab truststore cov ntaub ntawv. Ob leeg yog cov ntaub ntawv hauv JKS cov ntaub ntawv tsim tawm. Qhov txawv yog nyob rau hauv siv : Rau qhov zoo tshaj plaws ntawm kuv txoj kev paub, Java yuav nkaus xwb siv lub khw uas tau hais los ntawm -Djavax. net.

Ib tug kuj yuav nug, Truststore cov ntaub ntawv yog dab tsi? A TrustStore tuav cov ntawv pov thawj ntawm cov tshuab sab nraud uas koj ntseeg. Yog li ntawd a TrustStore yog KeyStore ntaub ntawv , uas muaj cov yuam sij pej xeem / daim ntawv pov thawj ntawm lwm tus tswv uas koj ntseeg.

Ib yam li ntawd, yog Cacerts lub khw tseem ceeb lossis Truststore?

' cacerts 'yog a truststore . A ntseeg lub khw yog siv los txheeb xyuas cov phooj ywg. A keystore yog siv los txheeb xyuas koj tus kheej. cacerts yog qhov twg Java khaws cov ntawv pov thawj pej xeem ntawm cov hauv paus CAs.

Vim li cas peb thiaj xav tau keystore thiab Truststore?

Hauv SSL tuav lub hom phiaj ntawm trustStore yog los xyuas cov ntaub ntawv pov thawj thiab lub hom phiaj ntawm keyStore yog muab ntawv pov thawj. keyStore hauv Java khaws cov yuam sij ntiag tug thiab daim ntawv pov thawj sib raug rau lawv cov yuam sij pej xeem thiab xav tau Yog tias koj yog SSL Server lossis SSL xav tau neeg authentication.

Pom zoo: