java对数字证书的基本操作:

http://developer.51cto.com/art/200512/13785.htm