Sun Java logo     ��һҳ      Ŀ¼      ����      ��һҳ     

Sun logo
Sun Java System Access Manager 6 2005Q1 ����ָ�� 

�� 2 ��
�� SSL ģʽ������ Access Manager

����ȫ�׽��ֲ� (SSL) �ͼ���֤���ʹ�ÿ��Ա�֤��ݵı����Ժ������ԡ�Ҫ�� SSL ģʽ������ Access Manager��ͨ����Ҫִ�����²���

  1. ʹ�ð�ȫ Web �������� Access Manager
  2. ���� Access Manager �p�ȫ Directory Server

���¸�ֽ�������Щ���裺


ʹ�ð�ȫ Sun Java System Web Server ���� Access Manager

�� SSL ģʽ������ Access Manager(ʹ�� Sun Java System Web Server)���μ����²��裺

  1. �� Access Manager ����̨�У�ת�����������á�ģ�鲢ѡ��ƽ̨�������ڡ��������б?�����У��Ƴ� http:// Э�飬����� https:// Э�顣������桱��

  2. ע

    ����ص�����桱�����򣬾��������ܼ�������IJ��裬��������������ø�Ķ��ᶪʧ�����������Թ���Ա��ݵ�¼4�Դ������޸���


���� 2 ������ 25 �� Sun Java System Web Server ������˵��

  1. ��¼�� Web Server ����̨��Ĭ�϶˿�Ϊ 58888��
  2. ѡ������ Access Manager �� Web Server ʵ�����?��
  3. ����ʾһ���ڣ�˵�������Ѹ�ġ�����ȷ������

  4. ������Ļ���Ͻǵġ�Ӧ�á���ť��
  5. ����Ӧ�����á���
  6. Web Server Ӧ�����Զ������������ȷ��������

  7. ֹͣѡ���� Web Server ʵ��
  8. �����ȫ�ԡ�ѡ���
  9. ���������ݿ⡱��
  10. ��������ݿ����벢����ȷ������
  11. ����ؽ���ݿ��������4���Ա���4ʹ�á�

  12. ����֤����ݿ�󣬵�������֤�顱��
  13. ����Ļ�ϵ��ֶ���������ݡ�
  14. �ڡ���Կ���ֶ����롱�ֶ��������������� 9 ����������롣�ڡ�λ�á��ֶ�������λ�õ�����ƴд������������д������ CA�������붨�������ֶΡ��ڡ�������ơ��ֶ��У�������� Web Server �������

  15. �ύ�?������������Ϣ��
  16. --BEGIN CERTIFICATE REQUEST---

    afajsdllwqeroisdaoi234rlkqwelkasjlasnvdknbslajowijalsdkjfalsdflasdf

    alsfjawoeirjoi2ejowdnlkswnvnwofijwoeijfwiepwerfoiqeroijeprwpfrwl

    --END CERTIFICATE REQUEST--

  17. ���Ʋ�Ϊ֤�������ύ���ı���
  18. ȷ�����ȡ���Ǹ� CA ֤�顣

  19. ���յ�һ���֤���֤����Ӧ�����磺
  20. --BEGIN CERTIFICATE---

    afajsdllwqeroisdaoi234rlkqwelkasjlasnvdknbslajowijalsdkjfalsdflasdf

    alsfjawoeirjoi2ejowdnlkswnvnwofijwoeijfwiepwerfoiqeroijeprwpfrwl

    --END CERTIFICATE---

  21. ����Щ�ı����Ƶ������򱣴浽�ļ��С�
  22. ת�� Web Server ����̨�������װ֤�顱��
  23. ����÷�����ġ�֤�顱��
  24. �ڡ���Կ���ļ����롱�ֶ��У�����֤����ݿ����롣
  25. ��֤��ճ���ṩ���ı��ֶ��л�ѡ�е�ѡ��ť�������ı����������ļ������ύ����
  26. �������ʾ֤�飬���ṩ�������֤��İ�ť��

  27. �����װ֤�顱��
  28. �������ε�֤����Ȩ���֤�顱��
  29. �������� 16 ������ 21 ������ķ�����װ�� CA ֤�顣
  30. ��װ����}��֤��󣬵��� Web Server ����̨�еġ���ѡ�ѡ���
  31. ���Ҫ������˿������� SSL����ѡ����������׽��֡���Ȼ��ѡ�񡰱༭�����׽��֡���
  32. ����ȫ״̬�ӡ��ѽ��á���Ϊ�������á���������ȷ�������ύ����ĸ�ġ�

���� 26 ������ 28 ���� Access Manager��

  1. �� AMConfig.properties �ļ���Ĭ������£����ļ�λ�� etc/opt/SUNWam/config �С�
  2. �����ֵ����� http:// Э���滻Ϊ https:// Э�飨���� Web Server ʵ��Ŀ¼������Ҫ���ļ� AMConfig.properties �н���ָ�������DZ��뱣����ͬ��
  3. ���� AMConfig.properties ���
  4. �� Web Server ����̨�У����� Web Server ʵ������� Access Manager �ġ���/�ء���ť��
  5. Web Server ���ڡ���/ֹͣ��ҳ������ʾһ���ı���

  6. ���ı��ֶ�����֤����ݿ����벢ѡ�������


ʹ�ð�ȫ Sun Java System Application Server ���� Access Manager

����ͨ������}�������� Access Manager��ʹ���������� SSL �� Sun Java System Application Server �����С����ȣ�ʹ Application Server ʵ������Ѱ�װ�� Access Manager 4˵�ǰ�ȫ�ģ�Ȼ������ Access Manager ���?

ʹ�� SSL ���� Application Server 6.2

Ҫ��֤ Application Server ʵ��İ�ȫ�ԣ�

  1. ����������������µ�ַ���Թ���Ա��ݵ�¼�� Sun Java System Application Server ����̨��
  2. http://fullservername:port

    Ĭ�϶˿�Ϊ 4848��

  3. �����ڰ�װ�����������û�������롣
  4. ѡ�����ڣ����ڣ����ϰ�װ Access Manager �� Application Server ʵ���Ҳ������ʾ�����Ѹ�ġ�
  5. ����Ӧ�ø�ġ���
  6. �������������Application Server ���Զ��������
  7. �������У������ȫ����
  8. ���������ݿ⡱ѡ���
  9. ���δѡ����ݿ⣬�򵥻������ݿ⡱��
  10. ��������ݿ����벢����ȷ�ϣ�Ȼ�󵥻�ȷ������ť����ȷ��������ݿ����룬�Ա���4ʹ�á�
  11. ����֤����ݿ�󣬵���֤����?ѡ���
  12. ���δѡ��֤�飬�򵥻�����t�ӡ�
  13. Ϊ֤�����������������
    1. ����֤��Ϊ��֤���֤����£���ѡ���֤�顣���֤���ھ����ض���һ��ʱ��֮�����ڣ�һЩ֤����Ȩ�� (CA) ���Զ������͸���֪ͨ��
    2. ָ����Ҫ�ύ֤������ķ�ʽ��
    3. ��� CA Ҫ����յ����ʼ���ʽ��������鿴 CA �����ʼ���Ȼ������ CA �ĵ����ʼ���ַ��Ҫ�鿴 CA ���б?�뵥����õ�֤����Ȩ���б?��

      �������ʹ�� Sun Java System Certificate Server ���ڲ� CA ����֤�飬�뵥�� ��CA URL����Ȼ������ Certificate Server �� URL���� URL Ӧ��ָ�� Certificate Server �Ĵ���֤������ij���

    4. ������Կ���ļ������루���������� 9 ��ָ�������룩��
    5. �������±�ʶ��Ϣ��
    6. ����������������ȫ���(�˿ںš�

      �����������������ߵ�����

      �绰�����������ߵĵ绰���롣

      �����������Ҫ�����ϰ�װ����֤��� Sun Java System Application Server ��ȫ�޶���ơ�

      �����ʼ���ַ������Ա�ĵ����ʼ���ַ��

      ��֯����������֯����ơ�֤����Ȩ�����Ҫ���������������������������ij����ע�ᵽ����֯����

      ��֯��λ�������֯�IJ��Ż���������λ����ơ�

      λ����ƣ����У������л�������ơ�

      ��������������֯λ���9����ô���ֱ�ָ��֯���ڵ��ݻ�ʡ����ơ��벻Ҫʹ����д��

      ���/��������������ڹ��/�����}����ĸ�� ISO ���롣���磬�9�Ĵ����� US��

  14. ����ȷ������ť��ϵͳ����ʾһ����Ϣ�����磺
  15. --BEGIN NEW CERTIFICATE REQUEST---

    afajsdllwqeroisdaoi234rlkqwelkasjlasnvdknbslajowijalsdkjfalsdfla

    alsfjawoeirjoi2ejowdnlkswnvnwofijwoeijfwiepwerfoiqeroijeprwpfrwl

    --END NEW CERTIFICATE REQUEST--

  16. �����ı����������ݸ��Ƶ�һ���ļ���Ȼ�󵥻�ȷ������ȷ�����ȡ���Ǹ� CA ֤�顣
  17. ѡ��һ�� CA��Ȼ���ոû�� Web վ���ϵ�˵���ȡ����֤�顣����Դ� CMS��Verisign �� Entrust.net ��ȡ֤�顣
  18. �յ�4��֤����Ȩ�������֤�������Խ��ı����Ƶ������򱣴浽�ļ��С�
  19. ת�� Sun Java System Application Server ����̨��Ȼ�󵥻��װ��t�ӡ�
  20. Ϊ�÷�����ѡ��֤�顣
  21. �ڡ���Կ���ļ����롱�ֶ��У�����֤����ݿ����롣������������������ 9 �������������ͬ����
  22. ��֤��ճ�����ṩ�ġ���Ϣ�ı�������⣩���ı��ֶ��У����ڸ��ļ��ı����еġ���Ϣ���ֶ��������ļ���ѡ����Ӧ�ĵ�ѡ��ť��
  23. ����ȷ������ť���������ʾ֤�飬���ṩ�������֤��İ�ť��
  24. ������ӷ�����֤�顱��
  25. �������� 10 ������ 22 ������ķ�����װ�� CA ֤�顣���ǣ������� 18 �У���ѡ�����ε�֤����Ȩ���֤�顱��
  26. ֤�鰲װ����ɺ���չ������еġ�HTTP ������ڵ㡣
  27. ѡ��HTTP �������µġ�HTTP �������
  28. ѡ�� ��http-listener-1�����������ʾ�׽�����Ϣ��
  29. �� http-listener-1 ʹ�õĶ˿�ֵ�Ӱ�װ Application Server ʱ�����ֵ���Ϊһ�����ʵ�ֵ���� 443��
  30. ѡ������ SSL/TLS����
  31. ѡ��֤���dzơ���
  32. ָ�����ط���������Ӧ���������� 12 ��ָ���Ĺ������ƥ�䡣
  33. ������桱��
  34. ѡ��Ҫ�����ϰ�װ Sun Java System Access Manager ����� Application Server ʵ���Ҳ������ʾ�����Ѹ�ġ�
  35. ����Ӧ�ø�ġ���
  36. �������������Application Server ���Զ��������

ʹ�� SSL ���� Application Server 8.1

Ҫ��֤ Application Server ʵ��İ�ȫ�ԣ�

  1. ȷ�� Application Server ʵ����ֹͣ��
  2. ʹ�� asadmin>change-master-password �������������롣
  3. ת�� Application Server ����̨��ѡ�����á�>��HTTP ����>��HTTP �������
  4. ����Ҫ���õ�����������Ҵ�����ѡ�񡰰�ȫ�������á���
  5. ����Ƿ�װ certutil��
    1. ת�� /usr/sfw/bin��
    2. ���δ��װ���������Ŀ¼��װ SUNWtlsu �����
    3. /share/builds/integration/security/SECURITY_3_9_3_03B4/packages/~platform~

    4. Shell ������ LD_LIBRARY_PATH
    5. LD_LIBRARY_PATH has to have /usr/lib/mps/secv1

  6. ʹ�� certutil ��� certdb �а�װ��֤�飺
    1. ת�� /var/opt/SUNWappserver/domains/domain1/config
    2. certutil -L -d
    3. �����������
    4. /var/opt/SUNWappserver/domains/domain1/config/% certutil -L -d

      Application Server 8.1 �ڰ�װʱ�ᰲװ��ǩ������֤�飨�dz�Ϊ s1as���������������� ssl �Ķ˿� 4848��8181��

  7. ���֤��������ɵ��﷨Ϊ��
  8. certutil -R -s subj -o cert-request-file [-d certdir] [-P dbprefix] [-p phone] [-a]

    ���磺

    certutil -R -s "CN=test.company1.com, O=company1.com, C=US" -o cert.req -d . -a

  9. ʹ����������� CA ����֤�飺
  10. certutil -A -n cert-name -t trustargs [-d certdir] [-P dbprefix] [-a] [-i input]

  11. ��������֤�鱣�����ļ��С�
  12. ʹ�����������﷨��װ���� CA ֤�飺
  13. certutil -A -n cert-name -t trustargs [-d certdir] [-P dbprefix] [-a] [-i input]

    �����ε� CA ֤�鱣�浽�ļ��У����� cacert.txt��

  14. �г� certdb ��ȷ����װ�ɹ��������������
  15. /var/opt/SUNWappserver/domains/domain1/config/% certutil -L -d

  16. ת�� Application Server �������̨��ѡ��HTTP �������
  17. �ڡ��������á��£����µķ�����֤�����á�HTTP �������

  18. ������ Application Server��

�� SSL ģʽ������ Access Manager

Ҫ�� SSL ģʽ������ Access Manager����ִ�����²��裺

  1. �� Access Manager ����̨�У�ת�����������á�ģ�鲢ѡ��ƽ̨�������ڡ��������б?�����У���� HTTPS Э���ʽ����ͬ URL ������ SSL �Ķ˿ںš�������桱��

  2. ע

    �����һ�� Access Manager ʵ����������}��˿ڣ�����һ��Ϊ Http ģʽ����һ��Ϊ Https ģʽ����������ͼ���ó��ӵ� Cookie ���� Access Manager ʱ��Access Manager ��תΪ����Ӧ״̬����֧�ִ����á�


  3. ������Ĭ��λ�ô� AMConfig.properties �ļ���
  4. /etc/opt/SUNWam/config��

  5. �����ֵ����� http:// Э���滻Ϊ https:// Э�飬�����˿ںŸ��Ϊ���� SSL �Ķ˿ںš�
  6. ���� AMConfig.properties ���
  7. ������ Application Server��


ʹ�ð�ȫ BEA WebLogic Server ���� AMSDK

�����Ȱ�װ BEA WebLogic Server ����������Ϊ Web ����Ȼ���� SSL ģʽ���� AMSDK �������йذ�װ˵����μ� BEA WebLogic �������ĵ���Ҫ�� WebLogic ����Ϊ Access Manager �� Web ������μ��� 1 �¡�Access Manager 2005Q1 ���ýű�����

Ҫ���ð�ȫ�� WebLogic ʵ����ִ�����²��裺

  1. ʹ�ÿ�����˵�������
  2. ת�� WebLogic ��װĿ¼�����֤������
  3. ʹ�� vetri_csr.txt CSR �� CA ���������֤��
  4. ����׼��֤�鱣�浽�ı��ļ��С����� approvedcert.txt��
  5. ʹ������������ cacerts ��װ��� CA��
  6. cd jdk141_03/jre/lib/security/

    jdk141_03/jre/bin/keytool -keystore cacerts -keyalg RSA -import -trustcacerts -alias "Greenday CA" -storepass changeit -file /opt/bea81/cacert.txt

  7. ʹ����������װ�������֤�飺
  8. jdk141_03/jre/bin/keytool -import -keystore keystore -keyalg RSA -import -trustcacerts -file approvedcert.txt -alias "mykey"

  9. ʹ������û���������¼ WebLogic ����̨��
  10. ��5�����λ�ã�
  11. yourdomain> Servers> myserver> Configure Keystores

  12. ѡ���Զ�����ݡ���Ȼ��ѡ��Java ��׼���Ρ�
  13. ������Կ��λ�á����� /opt/bea81/keystore��
  14. ������Կ���������Կ��ͨ�ж�����磺
  15. ��Կ�����룺JKS/Java Standard Trust������ WL 8.1 ��Ϊ JKS��

    ��Կ��ͨ�ж��changeit

  16. �˲�����ʲô��˼���鿴 SSL ר����Կ����ר����Կ����mykey �����룺secret12

  17. ע

    ����ʹ��ȫǿ�� SSL ��ɣ����� SSL ���ʧ��


  18. �� Access Manager �У���װʱ���Զ����� AmConfig.properties �е����²������δ���ã����Խ����ʵ��ı༭��
  19. com.sun.identity.jss.donotInstallAtHighestPriority=true������ AM 6.3 �����ϰ汾�ⲻ�DZ���ģ�

    com.iplanet.security.SecureRandomFactoryImpl=com.iplanet.am.util.SecureRandomFactoryImpl

    com.iplanet.security.SSLSocketFactoryImpl=netscape.ldap.factory.JSSESocketFactory

    com.iplanet.security.encryptor=com.iplanet.services.util.JCEEncryption2 ��� JDK ·�����£�

    com.iplanet.am.jdk.path=/usr/jdk/entsys-j2se

    ��ʹ�� keytool ʵ�ó�����֤����ݿ��еĸ� CA�����磺

    /usr/jdk/entsys-j2se/jre/lib/security

    /usr/jdk/entsys-j2se/jre/bin/keytool -keystore cacerts -keyalg RSA -import -trustcacerts -alias "machinename" -storepass changeit -file

    /opt/bea81/cacert.txt

    keytool ʵ�ó���λ������Ŀ¼��

    /usr/jdk/entsys-j2se/jre/bin/keytool

  20. �� Access Manager amadmin ������ʵ�ó���ɾ�� -D"java.protocol.handler.pkgs=com.iplanet.services.comm"��
  21. �� SSL ģʽ������ Access Manager���й���ϸ��Ϣ���μ��� SSL ģʽ������ Access Manager��


ʹ�ð�ȫ IBM WebSphere Application Server ���� AMSDK

�����Ȱ�װ IBM WebShpere Server ����������Ϊ Web ����Ȼ���� SSL ģʽ���� AMSDK �������йذ�װ˵����μ� WebSphere �������ĵ���Ҫ�� WebLogic ����Ϊ Access Manager �� Web ������μ��� 1 �¡�Access Manager 2005Q1 ���ýű�����

Ҫ���ð�ȫ�� WebSphere ʵ����ִ�����²��裺

  1. �� Websphere /bin Ŀ¼�е� ikeyman.sh��
  2. �� Signer��ǩ���ߣ��˵�������֤����Ȩ�� (CA) ��֤�顣
  3. �� Personal Certs������֤�飩�˵������ CSR��
  4. ������һ������֤�顣
  5. ѡ�񡰸���֤�顱�����������֤�顣
  6. �� WebSphere ����̨�����Ĭ�ϵ� SSL ���ò�ѡ�����롣
  7. ����Ĭ�ϵ� IBMJSSE SSL �ṩ�ߡ�
  8. ��������������� CA ֤��Ӹմ������ļ����뵽Ӧ�÷����� JVM ��Կ�⣺
  9. $ appserver_root-dir/java/bin/ keytool -import -trustcacerts -alias cmscacert -keystore ../jre/lib/security/cacerts -file /full_path_cacert_filename.txt

    app-server-root-dir ��Ӧ�÷�����ĸ�Ŀ¼��full_path_cacert_filename.txt �Ǻ���֤����ļ�������·����

  10. �� Access Manager �У����� AmConfig.properties �е����²�����ʹ�� JSSE��
  11. com.sun.identity.jss.donotInstallAtHighestPriority=true

    com.iplanet.security.SecureRandomFactoryImpl=com.iplanet.am.util.SecureRandomFactoryImpl

    com.iplanet.security.SSLSocketFactorImpl=netscape.ldap.factory.JSSESocketFactory

    com.iplanet.security.encyptor=com.iplanet.services.unil.JCEEncryption

  12. �� SSL ģʽ������ Access Manager���й���ϸ��Ϣ���μ��� SSL ģʽ������ Access Manager��


�� SSL ģʽ������ Access Manager �� Directory Server

Ϊȷ��ͨ�������ṩ��ȫͨ�ţ�Access Manager �а�( LDAPS ͨ��Э�顣LDAPS �DZ�׼�� LDAP Э�飬�����ڡ���ȫ�׽��ֲ㡱(SSL) �����С�Ϊ������ SSL ͨ�ţ����������� SSL ģʽ������ Directory Server��Ȼ�� Access Manager l�ӵ� Directory Server���������£�

  1. ��ò���װ Directory Server ��֤�飬Ȼ�� Directory Server ����Ϊ����֤����Ȩ�� (CA) ��֤�顣
  2. ��Ŀ¼������ SSL��
  3. ������֤�����Ժ�ƽ̨������l�ӵ����� SSL �� Directory Server��
  4. ���� Access Manager �԰�ȫ��l�ӵ� Directory Server ��ˡ�

�� SSL ģʽ������ Directory Server

Ϊ�� SSL ģʽ������ Directory Server�������ò���װ������֤�顢�� Directory Server ����Ϊ���� CA ��֤�鲢������ SSL���й���������Щ�������ϸ˵��μ� Directory Server ����ָ���ĵ� 11 �¡�������֤�ͼ��ܡ�����������λ���ҵ����ĵ���

���ɴ�����λ�����ش��ֲ�� PDF��

http://docs.sun.com/coll/DirectoryServer_04q2 �� http://docs.sun.com/coll/DirectoryServer_04q2_zh

��� Directory Server �Ѿ����� SSL����ת����һ���֣��Բ鿴�йؽ� Access Manager l�ӵ� Directory Server ����ϸ˵��

�� Access Manager l�ӵ����� SSL �� Directory Server

�� SSL ģʽ�������� Directory Server �Ժ���Ҫ�� Access Manager ��ȫ��l�ӵ� Directory Server ��ˡ�Ϊ�ˣ���ִ�����²��裺

  1. �� Access Manager ����̨�У�ת�����������á�ģ���еġ�LDAP ��֤������
    1. �� Directory Server �˿ڸ��Ϊ SSL �˿ڡ�
    2. ѡ�񡰶� LDAP ���������� SSL ���ʡ����ԡ�
  2. ת�����������á�ģ���еġ���Ա�ʸ���֤������
    1. �� Directory Server �˿ڸ��Ϊ SSL �˿ڡ�
    2. ѡ�񡰶� LDAP ���������� SSL ���ʡ����ԡ�
  3. ת�����������á�ģ���еġ��������á�����
    1. �� Directory Server �˿ڸ��Ϊ SSL �˿ڡ�
    2. ѡ������ LDAP SSL�����ԡ�
  4. ���ı��༭���д� serverconfig.xml�����ļ�λ�ڣ�
  5. etc/opt/SUNWam/config

    1. �� <Server> Ԫ���У��������ֵ��
    2. port - ���� Access Manager ������İ�ȫ�˿ڵĶ˿ںţ�Ĭ��ֵΪ 636����

      type - �� SIMPLE ���Ϊ SSL��

    3. ���沢�ر� serverconfig.xml��
  6. ������Ĭ��λ�ô� AMConfig.properties �ļ���
  7. AcessManager-base/SUNWam/config��

    ����������ԣ�

    1. Directory Port = 636�����ʹ��Ĭ��ֵ��
    2. ssl.enabed = true
    3. ���� AMConfig.properties��
  8. �����������


��һҳ      Ŀ¼      ����      ��һҳ     


�ļ����� 819-1940�� ��Ȩ���� 2005 Sun Microsystems, Inc. ��������Ȩ��