Cov txheej txheem:

Kuv yuav tsim cov ntaub ntawv pkcs12 siv OpenSSL li cas?
Kuv yuav tsim cov ntaub ntawv pkcs12 siv OpenSSL li cas?

Video: Kuv yuav tsim cov ntaub ntawv pkcs12 siv OpenSSL li cas?

Video: Kuv yuav tsim cov ntaub ntawv pkcs12 siv OpenSSL li cas?
Video: Ib sim nkauj nraug tsis sib tau-maiv xis xyooj nkauj tawm tshiab 2022 2024, Hlis ntuj nqeg
Anonim

Yuav ua li cas los tsim cov ntaub ntawv PKCS # 12 siv OpenSSL

  1. Luam tus yuam sij ntiag tug thiab SSL daim ntawv pov thawj rau ib daim ntawv yooj yim ntaub ntawv . Tus yuam sij ntiag tug yuav tsum mus rau saum nrog lub SSL daim ntawv pov thawj hauv qab no. Hauv qhov piv txwv, peb siv "filename.
  2. Khiav cov hauv qab no openssl hais kom ua: openssl pkcs12 -export -in filename.txt -out filename. p12 ua . Koj tuaj yeem tau txais cov lus qhia hauv qab no:

Ib yam li ntawd ib tug yuav nug, Kuv yuav tsim cov ntaub ntawv pkcs12 li cas?

Txhawm rau tsim cov ntaub ntawv PKCS12 siv OpenSSL ua raws cov theem hauv qab no:

  1. Luam tus yuam sij ntiag tug thiab daim ntawv pov thawj SSL mus rau ib daim ntawv dawb.
  2. Khiav cov lus txib openssl hauv qab no:
  3. Yog tias qhov chaw tsis tau teev tseg, cov ntaub ntawv PKCS12 tshiab yuav nyob hauv cov npe ntawm qhov chaw OpenSSL cov lus txib raug tua.

Kuj Paub, cov ntaub ntawv pkcs12 yog dab tsi? Hauv cryptography, PKCS #12 txhais cov ntaub ntawv khaws tseg ntaub ntawv hom ntawv khaws cia ntau yam khoom cryptography ua ib zaug xwb ntaub ntawv . Nws yog feem ntau siv los qhwv tus yuam sij ntiag tug nrog nws daim ntawv pov thawj X. 509 lossis txhawm rau txhawm rau txhua tus tswvcuab ntawm cov saw ntawm kev ntseeg siab. Lub npe txuas ntxiv rau PKCS #12 cov ntaub ntawv yog. p12 ua los yog.

Nyob rau hauv txoj kev no, kuv yuav ua li cas thiaj tsim tau ib qho keystore nrog OpenSSL?

Cov kauj ruam los tsim daim ntawv pov thawj tus kheej kos npe siv OpenSSL

  1. KAUJ RUAM 1: Tsim tus yuam sij ntiag tug thiab daim ntawv pov thawj pej xeem siv cov lus txib hauv qab no:
  2. Kauj ruam 2: Siv cov khoom siv java hauv qab no los tsim JKS keystore:
  3. Kauj ruam 2a: Tsim ib PKCS12 keystore:
  4. Kauj ruam 2b: Tam sim no hloov PKCS12 keystore rau JKS keytstore siv keytool hais kom ua:
  5. Kauj ruam 3:

Kuv yuav hloov PEM li cas rau.p12 siv OpenSSL?

Hloov daim ntawv pov thawj PEM rau PFX/P12 hom

  1. Download tau thiab nruab version 1.0. 1 ib p.
  2. Khiav cov lus txib hauv qab no los ntawm OpenSSL installation bin folder. openssl pkcs12 -export -out Cert.p12 -in cert.pem -inkey key.pem -passin pass:root -passout pass:root.

Pom zoo: