🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: cn.bbs.comp.lang.java
1 messages
1 total messages Started by Christopher Sun, 27 Sep 2009 00:50
Tomcat������ssl
#241
Author: Christopher
Date: Sun, 27 Sep 2009 00:50
41 lines
2799 bytes
1.      ��� server key ��
��command����������������� 
keytool -genkey -alias tomcat -keyalg RSA -keypass changeit -storepass changeit 
-keystore server.keystore -validity 3600 
Ĭ��·���ڡ�C:\Documents and Settings\�û������棩�ŵ�TomcatHOME\��

2.��֤�鵼���JDK��֤�����ο���:
�ⲽ����Tomcat��SSL���ò��DZ��룬������CAS SSO�DZ���ģ������
�������´���edu.yale.its.tp.cas.client.CASAuthenticationException: Unable
 to validate ProxyTicketValidator������
�����̷�2������һ���ǵ���֤�飬�ڶ����ǵ��뵽֤�����ο⣬�������£�
keytool -export -trustcacerts -alias tomcat -file server.cer -keystore  server.keystore 
-storepass changeit
keytool -import -trustcacerts -alias tomcat -file server.cer -keystore  %JAVA_HOME%/jre/lib/
security/cacerts -storepass changeit
�������ʾ������Y�Ϳ����ˡ�
��������keytool����г�����֤�������������֤�飬ɾ�����ij��֤�飩��
keytool -list -v -keystore D:/sdks/jdk1.5.0_11/jre/lib/security/cacerts
keytool -delete -trustcacerts -alias tomcat  -keystore  D:/sdks/jdk1.5.0_11/jre/lib/security/
cacerts -storepass changeit

3.
����TOMCAT   server.xml
   
 <Connector port="8443" maxHttpHeaderSize="8192"  
         maxThreads="150" minSpareThreads="25" maxSpareThreads="75"  
            enableLookups="false" disableUploadTimeout="true"  
          acceptCount="100" scheme="https" secure="true"  
           clientAuth="false" sslProtocol="TLS"    
           keystoreFile="server.keystore"    
           keystorePass="changeit"/>  

4. ���ʣ�
https://localhost:8443/

PS:������ۺ�ʵ�������

--
����������

�� ��Դ:�������ʵBBS bbs.tju.edu.cn��[FROM: 202.113.13.188]
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads