Cov txheej txheem:

Kuv yuav ua li cas thiaj tsim tau tus yuam sij ntiag tug thiab pej xeem hauv OpenSSL?
Kuv yuav ua li cas thiaj tsim tau tus yuam sij ntiag tug thiab pej xeem hauv OpenSSL?

Video: Kuv yuav ua li cas thiaj tsim tau tus yuam sij ntiag tug thiab pej xeem hauv OpenSSL?

Video: Kuv yuav ua li cas thiaj tsim tau tus yuam sij ntiag tug thiab pej xeem hauv OpenSSL?
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Kaum ib hlis
Anonim

Tsim Public thiab Private Keys nrog openssl.exe

  1. Hauv Windows: Qhib Command Prompt (Start> Programs> Accessories> Command Prompt).
  2. Nias ENTER. Cov tus yuam sij ntiag tug yog generated thiab khaws cia rau hauv ib cov ntaub ntawv npe " rsa ua .
  3. Tsim tus Private Key -- Linux.
  4. Qhib lub Terminal. Nkag mus rau hauv daim nplaub tshev nrog ListManager directory.
  5. Nias ENTER.
  6. Qhib lub Terminal.

Tom qab ntawd, ib tug kuj yuav nug, ua li cas koj tsim ib tug private thiab pej xeem tus tseem ceeb khub?

Yuav Ua Li Cas Tsim Ib Tug Pej Xeem/Private Key Pair

  1. Pib qhov kev pab cuam tsim lub cim tseem ceeb. myLocalHost% ssh-keygen Tsim pej xeem / ntiag tug rsa tus yuam sij.
  2. Nkag mus rau txoj kev mus rau cov ntaub ntawv uas yuav tuav tus yuam sij.
  3. Sau tus password rau kev siv koj tus yuam sij.
  4. Rov sau tus password kom paub meej tias nws.
  5. Tshawb xyuas cov txiaj ntsig.
  6. Luam tus yuam sij pej xeem thiab ntxiv tus yuam sij rau $HOME/.

Kuv yuav ua li cas thiaj tsim tau PEM pej xeem key? Cov Lus txib kom khiav

  1. Tsim 2048 ntsis RSA Key. Koj tuaj yeem tsim cov pej xeem thiab ntiag tug RSA tus khub zoo li no:
  2. Export RSA Public Key rau ib cov ntaub ntawv.
  3. Tsis txhob khiav qhov no, nws Exports tus yuam sij ntiag tug.
  4. Saib xyuas koj cov ntaub ntawv tseem ceeb.
  5. Cov ntaub ntawv private.pem zoo li no:
  6. Public key, public.pem, file zoo li:

Kuj nug, Kuv yuav ua li cas thiaj tsim tau tus yuam sij ntiag tug thiab pej xeem hauv Windows?

[2] Tsim tus kheej thiab pej xeem tus khub tseem ceeb:

  1. Mus rau Windows Start menu -> Txhua Qhov Kev Pabcuam -> PuTTY thiab qhib PuTTYgen.
  2. Nyem qhov 'Tsim' khawm thiab PuTTYgen yuav hais kom koj ua qee qhov kev txav mus los nrog koj tus nas kom txog thaum nws muaj cov ntaub ntawv random txaus los tsim kom muaj tus yuam sij ruaj ntseg rau koj.

PEM puas yog pej xeem lossis tus yuam sij ntiag tug?

A PEM cov ntaub ntawv yuav muaj tsuas yog hais txog txhua yam nrog rau a pej xeem key , a tus yuam sij ntiag tug , los yog ob qho tib si, vim a PEM cov ntaub ntawv tsis yog tus qauv. Hauv cov nyhuv PEM tsuas yog txhais tau tias cov ntaub ntawv muaj cov ntaub ntawv base64-encoded me ntsis.

Pom zoo: