java Êý×ÖÖ¤ÊékeytoolÓ÷¨
Java ÖÐµÄ keytool.exe £¨Î»ÓÚ JDK\Bin Ŀ¼Ï£©¿ÉÒÔÓÃÀ´´´½¨Êý×ÖÖ¤Ê飬ËùÓеÄÊý×ÖÖ¤ÊéÊÇÒÔÒ»ÌõÒ»Ìõ(²ÉÓñðÃûÇø±ð)µÄÐÎʽ´æÈëÖ¤Êé¿âµÄÖУ¬Ö¤Êé¿âÖеÄÒ»ÌõÖ¤Êé°üº¬¸ÃÌõÖ¤ÊéµÄ˽Կ£¬¹«Ô¿ºÍ¶ÔÓ¦µÄÊý×ÖÖ¤ÊéµÄÐÅÏ¢¡£Ö¤Êé¿âÖеÄÒ»ÌõÖ¤Êé¿ÉÒÔµ¼³öÊý×ÖÖ¤ÊéÎļþ£¬Êý×ÖÖ¤ÊéÎļþÖ»°üÀ¨Ö÷ÌåÐÅÏ¢ºÍ¶ÔÓ¦µÄ¹«Ô¿¡£
KeytoolÊÇÒ»¸öJavaÊý¾ÝÖ¤ÊéµÄ¹ÜÀí¹¤¾ß¡£
keystore
Keytool½«ÃÜÔ¿£¨key£©ºÍÖ¤Ê飨certificates£©´æÔÚÒ»¸ö³ÆΪkeystoreµÄÎļþÖÐÔÚkeystoreÀ°üº¬Á½ÖÖÊý¾Ý£º
ÃÜԿʵÌ壨Key entity£©——ÃÜÔ¿£¨secret key£©ÓÖ»òÕßÊÇ˽ԿºÍÅä¶Ô¹«Ô¿£¨²ÉÓ÷ǶԳƼÓÃÜ£©
¿ÉÐÅÈεÄÖ¤ÊéʵÌ壨trusted certificate entries£©——Ö»°üº¬¹«Ô¿
Alias£¨±ðÃû£©
ÿ¸ökeystore¶¼¹ØÁªÕâÒ»¸ö¶ÀÒ»ÎÞ¶þµÄalias£¬Õâ¸öaliasͨ³£²»Çø·Ö´óСд
keystoreµÄ´æ´¢Î»ÖÃ
ÔÚûÓÐÖƶ¨Éú³ÉλÖõÄÇé¿öÏ£¬keystore»á´æÔÚÓëÓû§µÄϵͳĬÈÏĿ¼£¬
È磺¶ÔÓÚwindow xpϵͳ£¬»áÉú³ÉÔÚϵͳµÄC:\Documents and Settings\UserName\
ÎļþÃûΪ“.keystore”
keystoreµÄÉú³É
ÒýÓÃkeytool -genkey -alias tomcat -keyalg RSA -keystore d:\mykeystore -dname "CN=localhost, OU=localhost, O=localhost, L=SH, ST=SH, C=CN" -keypass changeit -storepass -validity 180
²ÎÊý˵Ã÷£º
-genkey±íʾҪ´´½¨Ò»¸öеÄÃÜÔ¿
-dname±íʾÃÜÔ¿µÄDistinguished Names£¬
CN=commonName
OU=organizationUnit
O=organizationName
L=localityName
S=stateName
C=country
Distinguished Names±íÃ÷ÁËÃÜÔ¿µÄ·¢ÐÐÕßÉí·Ý
-keyalgʹÓüÓÃܵÄËã·¨£¬ÕâÀïÊÇRSA
-aliasÃÜÔ¿µÄ±ðÃû
-keypass˽ÓÐÃÜÔ¿µÄÃÜÂ룬ÕâÀïÉèÖÃΪchangeit
-keystore ÃÜÔ¿±£´æÔÚD:ÅÌĿ¼ÏµÄmykeystoreÎļþÖÐ
-storepass ´æÈ¡ÃÜÂ룬ÕâÀïÉèÖÃΪchangeit£¬Õâ¸öÃÜÂëÌṩϵͳ´ÓmykeystoreÎļþÖн«ÐÅϢȡ³ö
-validity¸ÃÃÜÔ¿µÄÓÐЧÆÚΪ 180Ìì (ĬÈÏΪ90Ìì)
1£¬²úÉúÒ»¸öÃÜÔ¿¶Ô
keytool -genkey -alias mykeypair -keypass mykeypairpwd
¹ý³ÌÈçÏ£ºkeytool -genkey -alias mykeypair -keypass mykeypairpwd
ÊäÈëkeystoreÃÜÂ룺 123456
ÄúµÄÃû×ÖÓëÐÕÊÏÊÇʲô£¿
[Unknown]£º
Ïà¹ØÎĵµ£º
1.¼Ì³ÐµÄ»ù±¾¸ÅÄî
µ±¶à¸öÀàÖ®¼ä´æÔÚÏàͬµÄÊôÐԺͷ½·¨Ê±£¬ÔÚ¸¸ÀàÖж¨ÒåÕâЩÏàͬµÄÊôÐԺͷ½·¨£¬ËùÓеÄ×ÓÀàÎÞÐèÖØж¨ÒåÕâЩÊôÐԺͷ½·¨£¬Ö»ÐèҪͨ¹ýextendsÓï¾äÉùÃ÷¼Ì³ÐBaseÀà¡£
£¨1£©¼Ì³ÐµÄ¶«Î÷
a.µ±subÀàºÍbaseÀàλÓÚͬһ¸ö°üÖÐʱ£¬su ......
½ñÌìÓÃÁËÒ»ÏÂJAVAÖеÄJDOM£¬JDOM ÊÇÒ»ÖÖʹÓà XML µÄ¶ÀÌØ Java ¹¤¾ß°ü£¬ÓÃÓÚ¿ìËÙ¿ª·¢ XML Ó¦ÓóÌÐò¡£
ÔÚÒÔÏÂÕâÀïÄܹ»¿´µ½¸üÏêϸµÄ¶ÔJDOMµÄ½éÉÜ£º
http://www.ibm.com/developerworks/cn/java/j-jdom/
ÏÂÃæÊÇÎÒ×Ô¼ºµÄ¹ØÓÚдXMLÎļþ¼°¶ÁXMLÎļþµÄ´úÂ룺
дXMLÎļþ
import org.jdom.*;
import org.jdom.output.XMLOutputt ......
´«ÖDz¥¿ÍJAVAÅàѵ2010-4-29Lucene×ܽá
½ñÌìÐÄÇé²»´í£¬±±¾©µÄÌìÖÕÓÚ¶³öÁËÌ«ÑôÄÇ»¨¶ùÒ»°ãµÄÁ³µ°¶ù£¬ÐÄÇéÒ²²»ÓÉÒò´Ë¶øÉú³öϲÔã¬ÈË×ÜÊÇ»áÊÜ»·¾³µÄÓ°Ï죬ÏÂÎç»ØÀ´ÐÂÎÅÖÐÎÒ¿´µ½¹ã¶«ÄDZ߷¢ÉúµÄÊ£¬ÎÒÐÄÇé˵²»³öÀ´µÄ³ÁÖØ£¬ÎªÊ²Ã´ÕâЩÈ˲»ºÃºÃÕäϧÉú»îÄØ£¿ÎªÊ²Ã´ÒªÄÃÄÇЩÎÞ¹¼µÄСº¢×Ó³öÆø£¬°¦£¡
Éú»îÒÀȻҪ¼ÌÐø£¬Ñ§Ï°ÒÀ¾ÉÒª¼ÌÐ ......
òËƱȽ϶࣬²»¹ý¶à¶®µã£¬Ò²Ã»Ê²Ã´²»ºÃ¡£
1¡¢ÊìϤjdbc£¬»áÓÃjdbc¡£
2 »áдsqlºÍ´æ´¢¹ý³Ì¡£
3¡¢ÊìϤswing¿Ø¼þ¡¢²»¹ý²»½¨ÒéÓÃswing¿ª·¢¿Í»§¶Ë
4 ÊìϤ swt£¬rcp ¿Í»§¶Ë£¬½¨ÒéÓÃrcp¿ª·¢¿Í»§¶Ë
5 ÊìϤjsp servlet
6 ÊìϤtomcat£¬ÖÁÉÙÖªµÀweb¡£x ......