Cov txheej txheem:

SSL ntsiab lus hauv Java yog dab tsi?
SSL ntsiab lus hauv Java yog dab tsi?

Video: SSL ntsiab lus hauv Java yog dab tsi?

Video: SSL ntsiab lus hauv Java yog dab tsi?
Video: How to disable antivirus on windows 7 2024, Hlis ntuj nqeg
Anonim

SSL Cov ntsiab lus yog ib phau ntawm cov ntawv ciphers, raws tu qauv versions, daim ntawv pov thawj ntseeg siab, TLS xaiv, TLS extensions thiab lwm yam. Vim nws yog heev uas muaj ntau yam kev sib txuas nrog tib qhov chaw lawv muab tso ua ke nyob rau hauv ib tug ntsiab lus thiab qhov cuam tshuam SSL kev sib txuas yog tsim los ntawm qhov no ntsiab lus.

Hauv qhov no, SSL yog dab tsi hauv Java?

Ob txoj kev SSL Java Piv txwv. Ruaj Ntseg Txheej Txheej ( SSL ) yog tus qauv kev ruaj ntseg thev naus laus zis los tsim kev sib txuas encrypted ntawm tus neeg rau zaub mov thiab tus neeg siv khoom. Nyob rau hauv ib txoj kev SSL , tus neeg siv khoom lees paub tus kheej ntawm lub server thaum tus neeg siv khoom tsis qhia npe.

Tsis tas li ntawd, yog SSLContext xov zoo? 2 Teb. Hu rau SSLContext . createSSLEngine() zoo li yog xov - nyab xeeb . Yam tsawg kawg yog raws li qhov tseeb tias daim ntawv thov tsis ua tsis tiav nrog kev sib tw-txheej xwm-kev ua yuam kev.

Qhov thib ob, teeb tsa SSL Daim Ntawv Pov Thawj hauv Java li cas?

Nruab ib daim ntawv pov thawj CA-kos npe SSL nrog Java keytool

  1. Kev xaiv 1: Tsim tus yuam sij tshiab thiab Java keystore; import CA tus kos npe. Kauj ruam 1: Tsim ib lub keystore thiab kos npe thov. Kauj Ruam 2: Thov daim ntawv pov thawj CA kos npe.
  2. Kev xaiv 2: Ntim PEM hom tseem ceeb thiab daim ntawv pov thawj uas twb muaj lawm hauv Java keystore tshiab.
  3. Kev xaiv 3: Hloov PKCS lossis PFX keystore uas twb muaj lawm rau Java keystore.

Sslconnectionsocketfactory yog dab tsi?

SSLSocketFactory tuaj yeem siv los txheeb xyuas tus kheej ntawm HTTPS neeg rau zaub mov tiv thaiv cov npe ntawm cov ntawv pov thawj ntseeg siab thiab lees paub rau HTTPS server siv tus yuam sij ntiag tug. Ib tus tuaj yeem xaiv los ua nws tus kheej CA thiab kos npe rau daim ntawv thov daim ntawv pov thawj siv lub cuab yeej PKI, xws li OpenSSL.

Pom zoo: