Topic: 用jsp取的符合x.509格式的证书! |
Print this page |
1.用jsp取的符合x.509格式的证书! | Copy to clipboard |
Posted by: robin Posted on: 2003-07-01 14:34 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> get cert info </TITLE> </HEAD> <BODY> <%@ page import="java.security.cert.*"%> <% //获得certificate chain X509Certificate[] ca=(X509Certificate[])request.getAttribute("javax.servlet.request.X509Certificate"); if(ca==null) { out.println("No cert info!"); return; } String serial=ca[0].getSerialNumber().toString(); String DN=ca[0].getSubjectDN().toString(); %> <%-- //other mothod: X509Certificate x509ca=(X509Certificate)request.getAttribute("javax.net.ssl.peer_certificates"); String serial1=x509ca.getSerialNumber().toString(); --%> <H3>cert serial=<%=serial%></H3> <h4>cert DN=<%=DN%></H4> <H3>cert serial1=<%--iii=serial1--%></H3> </BODY> </HTML> 不足之处请更正! |
2.Re:用jsp取的符合x.509格式的证书! [Re: robin] | Copy to clipboard |
Posted by: menzy Posted on: 2003-07-02 07:40 不错,鼓励一下 其实可以参考以前java 安全包中的例子,例子是.java的 |
3.Re:用jsp取的符合x.509格式的证书! [Re: robin] | Copy to clipboard |
Posted by: robin Posted on: 2003-07-02 09:34 又没有用enturst的toolkit进行开发的可以交流一下! |
4.Re:用jsp取的符合x.509格式的证书! [Re: robin] | Copy to clipboard |
Posted by: menzy Posted on: 2003-07-03 07:31 我们马上要用,不过还没有培训,Robin是银行部门的吧?该死的CFCA |
5.Re:用jsp取的符合x.509格式的证书! [Re: robin] | Copy to clipboard |
Posted by: robin Posted on: 2003-07-03 09:30 呵呵,cfca的确很烂!有时间多多沟通! 我想你们的培训也不会好到那里去,我手上只有一个开发包而已,并且javadoc还不全! |
6.Re:用jsp取的符合x.509格式的证书! [Re: robin] | Copy to clipboard |
Posted by: menzy Posted on: 2003-07-03 17:52 嗬嗬,没事聊聊天 MSN: mzy75@hotmail.com |
7.Re:用jsp取的符合x.509格式的证书! [Re: robin] | Copy to clipboard |
Posted by: FinalFantasy Posted on: 2003-07-07 02:24 封装在一个bean中,不会更好吗? 谢谢分享。:) |
8.Re:用jsp取的符合x.509格式的证书! [Re: robin] | Copy to clipboard |
Posted by: richardluopeng Posted on: 2003-08-04 13:17 不错,鼓励! |
9.Re:用jsp取的符合x.509格式的证书! [Re: robin] | Copy to clipboard |
Posted by: mole123456 Posted on: 2003-08-15 15:11 支持 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |