Title: Web
1??????? ?????????? ?? ????????? ? Web
- Java-??????? framework ? ??????? ???
??????? ?????
????????? ????????? ?? ?????????????? ?? ???????
www.nakov.com
www.devbg.org
2??????????
- ??????? ??????? ?????? ??????, ??????
??????????, ????????????? ???????????, PKI,
???????? ????????? PKCS12 - ??? ?????? ????????? ??????
- ?????????? ?? ??????? ??????? ? ??????????? ?
Java - ???????? ??? ???????????? ?? ????????? ?
Web-???????? ??????? - ??????? ?? ?????????? ?? ????????? ?
Web-?????????? NakovDocumentSigner
3??????? ???????
- ???????????? ? ???????? (????????????) ???????
- ???????? ????, ????? ????
- ?????? ??????
- ?????????????? ?? ????????? ???? (PKI)
- ??????? ??????????? ???????? X.509
- ????????????? ??????????? (CA)
- ?? ????? ???? (VeriSign, GlobalSign, Thawte,
Entrust) - ???????? CA (????. ????. ????????? ??????)
- ??????? CA (? ??????? ?? ?????????????)
4??????? ???????
- ???????????
- Root-??????????? ? ??????????? ?? ???????? CA
- Self-signed ???????????
- ???????? root-??????????? (trusted root CA
certificates) - ?????? ?? ??????????? (certification chains)
- ????????? ??????????? ????????? ?? ???????? ??
?????????? - Protected keystores ???????? ????????? ??
??????? ? ??????????? - .PFX ? .P12 ??????? ???????? PKCS12
- ?????-?????
5??? ?????? ????????? ??????
6??????? ? ??????????? ? Java
- Java Cryptography Architecture (JCA)
- ???????? ?? ?????????? ?? ?????????, ??????????
?? ??????? ??????? ? ?????? ? ??????? ???????????
- ?????????? API ???????? java.security ?
java.security.cert - java.security.KeyStore
- java.security.PublicKey
- java.security.PrivateKey
- java.security.Signature
- java.security.cert.X509Certificate
- java.security.cert.CertificateFactory
- java.security.GeneralSecurityException
- java.security.cert.CertificateException
- ??? ???????? ????????????? ? JDK 1.4
7??????????????? ?????? ? Java
- Java Certification Path API
- ?????????? ???????? ?? ???????? ? ??????????? ??
??????????????? ?????? - ??????? ??????? ? ??????????
- java.security.cert.CertPathValidator
- java.security.cert.CertPathBuilder
- java.security.cert.CertPath
- java.security.cert.TrustAnchor
- java.security.cert.PKIXParameters
- java.security.cert.CertPathValidator
- ??? ???????? ????????????? ? JDK 1.4
8?????????? ?? ????????? ? Web
- ????? ? ??????????
- ?????? ??? ????????? ?? ??????? ?? Web-??????????
???? ??????? ?? ?? ????????? ??????? ?? ????????? - ????? ?? ????????????
- ???????? ?? ?????? ?? ??? ?????? ?? ???????
??????? ?? ????????????? - ???????????? ?????? ?? ????? ?? ???????? ??
??????? - ???????????? Web-???????? ?? ????????? ???????
??????? - ???????? ??????? ?? ????? ?????
9?????????? ?? ????????? ? Web
- ??? ????? ?? ???????? ???? ? Web ????? ??
???????? ?? ???????? - ??????? ?????????? ??? ???????
- ????????? ??? ???????????? ? Web-????????????
- ????????? ?? ????????????? ??? ????????????
??????????? - ????????? ??? ??????????? ?? ????? ?????????
- ActiveX ????????
- ?????? ???? ??? Windows
- ?????? ???? ? ????? Web-????????
10?????????? ?? ????????? ? Web
- ??? ????? ?? ???????? ???? ? Web ????? ??
???????? ?? ???????? - Macromedia Flash
- ?? ???????? ?????? ? ??????? ???????
- ?? ????????? ?????? ?? ????????? ???????
- .NET Windows Forms ????????
- ???????? ?? ???? ?? Internet Explorer 6.0
- ??????? ?????????? .NET Framework
- ????????? ? ??????? ?? ????????? ???????
- ???????? Java ?????
- ?????? ?? ?????? ?????????
- ??????? ?????????? Java Plug-In 1.4
11????????? Java ??????
- ??????????? Java ?????? ?? ?????????? ???
??????????? ?? ??????? - ????? ?? ????????? ????????? ???????
- ????? ?? ????????? ??????????????? API ?? Java
- ?????????? ?? self-signed ??????????
- keytool -genkey -alias signFiles keystore
- SignApplet.jks -keypass !secret dname
- "CNMy Company" -storepass !secret
- ?????????? ?? Java ?????
- jarsigner -keystore SignApplet.jks
- -storepass !secret -keypass !secret
- Applet.jar signFiles
12NakovDocumentSigner
- ??????? ? ??????? ??? ?? ?????????? ?? ?????????
? Web-?????????? - NakovDocumentSigner ?? ?????? ??
- ???????? Java ?????
- ????????? ?? ??? ???????
- ???????? ????????? ????? ??????????? ??
- ??????????????? Web-??????????, ?????
- ??????? ??????????? ??????? ?? ???????
- ????????? ??????????? ?? ???????? ??????
- ????????? ??????????? ?? ???????????
???????? ??? ?? ????????????????? ??????
13?? ?????????? ?????
- ??????? ?? ? HTML ??????? ?? ????????? ?? ????
- ??????? Java Plug-In 1.4 ??? ??-???
- ??????? ???????????? ?? ?? ??????? ?? ?? ????????
? ???????? ????? - ??? ?????????? ???? ?? ??????????? ?? ??????
PKCS12 ????????? ?? ??????????? (.PFX ??? .P12
????) ? ?????? ?? ?????? ?? ???? - ??????? ???????? ?????? ? ??????????? ?????? ?
?????? ??????????????? ?????? ? ?????? ???? ??
HTML ??????? - ??????? ? ? ?????? ? Internet Explorer,
Netscape ? Mozilla ??? Windows ? Linux
14?? Web-???????????? ?? ???????
- ???????? ?? J2EE ? Struts framework
- ????????? ???????? ?????? ?? ????????? ???? ????
Java Cryptography Architecture - ????????? ??????????? ?? ????????? ?? ?????????
?? ??? ?????? - ???????? ???? ???????? ???? ????????????
?????????? ? ???????? ???????? ?? ????? ??
trusted Root-????????????? - ???? ????????????????? ?????? ????????? ??????
??????????????? ?????? ?? ??????????? ???? Java
Certification Path API - ???????? ? Apache Tomcat 4.0 ? JDK 1.4
15NakovDocumentSigner ? ????????
16NakovDocumentSigner ? ????????
17????????????
18???????
- ????? ?? ?????? ??????? ?????????? ?? ?????????
? Java-???????? Web-?????????? - ???? 1 ??????? ??????? http//www.developer.c
om/security/article.php/3083161 - ???? 2 ??? ??????? ????????? ???????
http//www.developer.com/security/article.php/3092
771 - ???? 3 ??????? ??????? ? ??????????? ? Java
http//www.developer.com/security/article.php/3105
261 - ???? 4 ???????? ? ????????? ??????? ? Web
http//www.developer.com/security/article.php/3288
571 - ???? 5 NakovDocumentSigner ??????? ? ???????
??? ?? ?????????? ?? ????????? ? Web-??????????
http//www.developer.com/security/article.php/3298
051 - ????????? ???? ?? NakovDocumentSigner
http//www.nakov.com/documents-signing/
19??????? ?????????? ?? ????????? ? Web
Java-??????? framework ? ??????? ???
????????