Cov txheej txheem:

Kuv yuav tsim cov ntaub ntawv PEM li cas hauv Truststore?
Kuv yuav tsim cov ntaub ntawv PEM li cas hauv Truststore?

Video: Kuv yuav tsim cov ntaub ntawv PEM li cas hauv Truststore?

Video: Kuv yuav tsim cov ntaub ntawv PEM li cas hauv Truststore?
Video: Ib sim nkauj nraug tsis sib tau-maiv xis xyooj nkauj tawm tshiab 2022 2024, Kaum ib hlis
Anonim

Yog koj muaj keystore thiab truststore hauv PEM format, convert lub PEM keystore ntaub ntawv rau PKCS12. Tom qab ntawd, export lub daim ntawv pov thawj thiab tus yuam sij rau JKS cov ntaub ntawv . Yog koj tsis muaj keystore thiab truststore cov ntaub ntawv , koj ua tau tsim lawv nrog OpenSSL thiab Java keytool.

Ib yam li ntawd, kuv yuav ntxiv PEM li cas rau TrustStore?

Txhawm rau hloov PEM-hom yuam sij rau Java KeyStores:

  1. Hloov daim ntawv pov thawj los ntawm PEM rau PKCS12, siv cov lus txib hauv qab no:
  2. Nkag mus thiab rov ua tus password export.
  3. Tsim thiab tom qab ntawd rho tawm ib qho khoob truststore siv cov lus txib hauv qab no:
  4. Ntshuam CA rau hauv truststore, siv cov lus txib hauv qab no:

Tsis tas li ntawd, PEM file yog dab tsi? Kev daws teeb meem. PEM lossis Privacy Enhanced Mail yog Base64 encoded DER daim ntawv pov thawj. PEM daim ntawv pov thawj feem ntau siv rau lub vev xaib servers vim lawv tuaj yeem muab txhais ua cov ntaub ntawv nyeem tau yooj yim siv cov ntawv nyeem yooj yim. Feem ntau thaum a PEM encoded ntaub ntawv qhib rau hauv cov ntawv nyeem, nws muaj cov headers thiab footers txawv heev.

Kuj nug, koj ua li cas los tsim cov ntaub ntawv TrustStore?

Txhawm rau tsim TrustStore tshiab

  1. Thawj qhov nkag tsim cov ntaub ntawv KeyStore npe hu ua myTrustStore hauv cov npe ua haujlwm tam sim no thiab xa cov ntawv pov thawj firstCA rau hauv TrustStore nrog lub npe ntawm firstCA.
  2. Rau qhov thib ob nkag, hloov secondCA kom xa daim ntawv pov thawj thib ob rau hauv TrustStore, myTrustStore.

Puas yog TrustStore tib yam li keystore?

Koj ua tau tseem siv ib yam file as trustStore thiab keyStore hauv Java kom tsis txhob tuav ob cov ntaub ntawv sib cais, tab sis nws lub tswv yim zoo los cais cov yuam sij pej xeem thiab cov yuam sij ntiag tug hauv ob cov ntaub ntawv sib txawv, nws cov lus piav qhia ntau dua thiab nws tus kheej piav qhia uas ib tus tuav CA daim ntawv pov thawj los ntseeg server thiab uas muaj cov neeg siv khoom ntiag tug.

Pom zoo: