Sun Java �ΰ�     ����      ����      ����      ��=     

Sun �ΰ�
Sun Java(TM) System Directory Server 5.2 2005Q1 �� ���? 

�η� A
Sun Crypto Accelerator ���� ���

�� �ηϿ����� Directory Server�� �Բ� Sun Crypto Accelerator ���带 ����Ͽ� ���� ����� ����� SSL(Secure Sockets Layer) �w�����; ����� ������ ���� ��� ��� ���� �����մϴ�.


���� �� ���� ����

ǥ A-1���� Sun Crypto Accelerator ���带 ����Ͽ� SSL ���� ����; ����Ű�� '�� ���� �����ؾ� �ϴ� �׸��� ����Ǿ� �ֽ4ϴ�.

ǥ A-1 ���� ���; '�� �ʼ� ���� 

�ʼ� ����

����

���� ��ġ

ȣ��Ʈ�� �ϵ����, ����̹�, ��ġ �� �� /ƿ��Ƽ�� ��ġ�ϴ� ��� �����8�� f��� fǰ ���?�� ��v�Ͻʽÿ�.

Directory Server ��ġ

�ڼ��� ����: Java Enterprise System ��ġ ���? �� ��v�Ͻʽÿ�.

���� ����(PKCS#12 ���)

Directory Server�� ���� ���� ����� .p12 ���Ϸ� �޽4ϴ�.

CA ����(PEM ���)

���� ���(CA)�� ���� CA ����� PEM(Privacy Enhanced Mail) ����� ���Ϸ� �޽4ϴ�.

SSL �w����ݰ� SSL ����� ���� �ڼ��� ���� �� ���� �ܼ�; ���� �� ����ϴ� Sun Java System ����� �Բ� �w�����; ����ϴ� ���: 11��, "���� �� ��ȣȭ ��"�� ��v�Ͻʽÿ�.


��ū �ۼ�

Directory Server�� ��ū�� ��й�ȣ�� ����Ͽ� ���� ���忡 �ִ� �ش� ��ȣȭ Ű �ڷῡ �׼����մϴ�. ��ū: user@realm ���; ����ϸ�, ���⼭ user�� ���� ������ ����ڷμ�, ��ȣȭ Ű �� �ڷ��� ��/�ڸ� ��Ÿ���� realm: ���� ������ ����8��, ����� �� �ش� Ű �� �ڷ��� �?�� ���� �����Դϴ�. ���� ���� user�� �ý����� ����� ��d�� �ƹ��� ��踦 ���� �ʿ䰡 ��8�� ���忡�� ���˴ϴ�. ����� �� ������ ���� �ڼ��� ����: ���� ���� fǰ ���?�� ��v�Ͻʽÿ�.

�����8�� f��� secadm(1M) /ƿ��Ƽ�� ����Ͽ� ��ū ����ڿ� ����; �ۼ��� �� �ֽ4ϴ�. ���� ���忡���� �ټ��� slots; �ۼ��Ͽ� ���� �?� �wα׷��� ���� ��ū; ���� �� �ֽ4ϴ�. ���⼭�� ����; '�� ȣ��Ʈ�� Directory Server ���8�� ��d�Ͽ� �⺻���� �� ���� ����; ����Ѵٰ� ��d�մϴ�. ���� ����Ʈ���� �?� �wα׷��� ���� ���带 ����ϴ� ���: ���� ���� fǰ ���?�� ��v�Ͻʽÿ�.

�⺻ ���Կ� �׼����� ��ū ����ڿ� ����; �ۼ��Ϸx� ��= �ܰ踦 �����մϴ�.

  1. secadm /ƿ��Ƽ�� �����մϴ�.
  2. $ CryptoPath/bin/secadm

    �⺻ CryptoPath�� /opt/SUNWconn/crypto�Դϴ�.

  3. ��ū ����; �ۼ��մϴ�.
  4. secadm> create realm=dsrealm
    System Administrator Login Required
    Login: super-user
    Password:
    Realm dsrealm created successfully.

  5. �ۼ��Ϸt� ����ڰ� ���Ե� ����; ��d�մϴ�.
  6. secadm> set realm=dsrealm
    secadm{dsrealm}> su
    System Administrator Login Required
    Login: super-user
    Password:
    secadm{root@dsrealm}#

  7. SSL�� ������ Directory Server�� �ٽ� ������ �� ���Ǵ� ��й�ȣ�� f���Ͽ� �⺻ ����; ����� nobody ����ڸ� �ۼ��մϴ�.
  8. secadm{root@dsrealm}# create user=nobody
    Initial password: password
    Confirm password: password
    User nobody created successfully.
    secadm{root@dsrealm}# exit

��f nobody@dsrealm ��ū�� ����ڿ� ������ �ۼ��Ǿ�8�� Directory Server�� �ٽ� ������ �� ���Ǵ� ��й�ȣ�� f���߽4ϴ�.


���� ���ε� ��

���� ������ ���ε�: Directory Server�� ���忡 ���ε��� �� �ֵ��� ���ϴ� �ܺ� ���� ����� ���; ����մϴ�. �پ��� SSL �˰?��; ����ϴ� Directory Server ���� �����ͺ��̽��� �ܺ� ���� ��� ���� ���ε�; ���Ϸx� ��= �ܰ踦 �����մϴ�.

  1. modutil; ����ϱ� �� LD_LIBRARY_PATH�� ��d�մϴ�.
  2. $ set LD_LIBRARY_PATH=ServerRoot/lib ; export LD_LIBRARY_PATH

  3. ���� ��� �����ͺ��̽��� ��; ��� �Ʒ� ���; �����Ͽ� �ۼ��մϴ�.
  4. $ cd ServerRoot/shared/bin
    $ ./modutil -create -dbdir ../../alias -dbprefix "slapd-serverID"

  5. �ܺ� ���� ���; ���� ��� �����ͺ��̽��� �߰��մϴ�.
  6. $ ./modutil -add "Crypto Mod" -dbdir ../../alias -nocertdb \
    -libfile CryptoPath/lib/libpkcs11.so \
    -mechanisms "RSA:DSA:RC4:DES" -dbprefix "slapd-serverID"

    �⺻ CryptoPath�� /opt/SUNWconn/crypto�Դϴ�.

  7. ���� ���; �����Ͽ� ����� f��� �߰��Ǿ���� Ȯ���մϴ�.
  8. $ ./modutil -list -dbdir ../../alias -dbprefix "slapd-serverID"

    �ܰ� 3���� �߰��� Crypto Mod �׸��� ǥ�õǾ�� �մϴ�.

  9. �� �ܺ� ���� ���; RSA, DSA, RC4 �� DES�� �⺻��8�� ��d�մϴ�.
  10. $ ./modutil -default "Crypto Mod" -dbdir ../../alias \
    -mechanisms "RSA:DSA:RC4:DES" -dbprefix "slapd-serverID"

    �̷��� �ϸ� �⺻ ���� ����� f��� ����˴ϴ�.

��f ���� ���忡 ���� ���ε�; ����8�Ƿ� ����� ��n�� �� �ֽ4ϴ�.


���� ��n�1�

SSL; �����ϱ� �� ���� ǥ A-1�� ����� ��� ��: ���� ����� CA ����� ��n�;� �մϴ�. ����� ��n�7x� ��= �ܰ踦 �����մϴ�.

  1. ���� ���� .p12 ����; ��n�ɴϴ�.
  2. $ cd ServerRoot/shared/bin
    $ ./pk12util -i ServerCert.p12 -d ../../alias -P "slapd-serverID" \
    -h "nobody@dsrealm"
    Enter Password or Pin for "nobody@dsrealm": password
    Enter Password for PKCS12 file: password

  3. CA ����� ��n�ɴϴ�.
  4. $ ./certutil -A -n "Crypto CA Cert" -t CT -i CACert.txt \
    -d ../../alias -P "slapd-serverID" -h "nobody@dsrealm"

  5. ��ū�� ��õ� ����� �����Ͽ� ����� f��� ��n�Դ��� Ȯ���մϴ�.
  6. $ ./certutil -L -d ../../alias -P "slapd-serverID" \
    -h "nobody@dsrealm"

    �ܰ� 1 �� �ܰ� 2���� �߰��� ���� �׸��� ǥ�õǾ�� �մϴ�.

��f ����� ��n��8�Ƿ� Directory Server���� SSL ����; ����ϵ��� ������ �� �ֽ4ϴ�.


SSL ����

�ۼ��� ��ū�� ��й�ȣ, �ܺ� ���� ���� Directory Server ���� �����ͺ��̽� ���� ���� ���ε�, �׸��� ��n�� ����� ����Ͽ� Directory Server�� ���� ���� ���۵ǵ��� ������ �� �ֽ4ϴ�. SSL; �����ϰ� Directory Server�� ���� ���� �ٽ� �����Ϸx� ��= �ܰ踦 �����մϴ�.

  1. SSL ��� Directory Server ���� �׸�; �����ϱ� '�� ��d �۾��� ���� ssl.ldif ����; �ۼ��մϴ�.
  2. �ڵ� �� A-1 ���带 ����Ͽ� SSL; Ȱ��ȭ�ϱ� '�� ��d �۾�(ssl.ldif)

     

    dn: cn=RSA,cn=encryption,cn=config

    changetype: add

    objectclass: top

    objectclass: nsEncryptionModule

    cn: RSA

    nsSSLToken: nobody@dsrealm

    nsSSLPersonalitySSL: ServerCertNickname1

    nsSSLActivation: on

     

    dn: cn=encryption,cn=config

    changetype: modify

    replace: nsSSL3

    nsSSL3: on

    -

    replace: nsSSLClientAuth

    nsSSLClientAuth: allowed

    -

    replace: nsSSL3Ciphers

    nsSSL3Ciphers: -rsa_null_md5,+rsa_rc4_128_md5,+rsa_rc4_40_md5,

    +rsa_rc2_40_md5,+rsa_des_sha,+rsa_fips_des_sha,+rsa_3des_sha,

    +rsa_fips_3des_sha,+fortezza,+fortezza_rc4_128_sha,

    +fortezza_null,+tls_rsa_export1024_with_rc4_56_sha,

    +tls_rsa_export1024_with_rc4_56_sha,

    +tls_rsa_export1024_with_des_cbc_sha

    -

    replace: nsCertfile

    nsCertfile: alias/slapd-serverID-cert8.db

    -

    replace: nsKeyFile

    nsKeyFile: alias/slapd-serverID-key3.db

     

    dn: cn=config

    changetype: modify

    replace: nsslapd-secureport

    nsslapd-secureport: port

    -

    replace: nsslapd-security

    nsslapd-security: on

     

    1 �� ��Ī: Directory Server ����� ���ԵǾ� �ֽ4ϴ�.

    ���⼭ nsslapd-secureport ���� port�� ���� ���� ���۵� Directory Server���� SSL ����; ����ϴ� ��Ʈ�Դϴ�.

  3. ��d �۾�; ����Ͽ� Directory Server ����; �����մϴ�.
  4. $ ldapmodify -p currPort -D "cn=directory manager" -w password -f ssl.ldif

    ���⼭ currPort�� Directory Server���� ���� Ŭ���̾�Ʈ ��û; ����ϴ� ��Ʈ ��ȣ�Դϴ�.

  5. Directory Server�� ���� ���� �ٽ� �����մϴ�.
  6. $ ServerRoot/slapd-serverID/restart-slapd
    Enter PIN for nobody@dsrealm: password

    ���⼭ password�� nobody@dsrealm ��ū; �ۼ��� �� �Է��� nobody ����� ��й�ȣ�Դϴ�.

��f Directory Server�� ��d�� ��Ʈ���� SSL Ʈ����; ����մϴ�. �� ��Ʈ���� SSL; ���� Directory Server�� �׼����ϵ��� Sun Java System Administration Server�� Ŭ���̾�Ʈ �?� �wα׷�; ������ �� �ֽ4ϴ�. �ڼ��� ����: 11��, "���� �� ��ȣȭ ��"�� ��v�Ͻʽÿ�.



����      ����      ����      ��=     


��ǰ ��ȣ: 819-2012.   Copyright 2005 Sun Microsystems, Inc. ��� �Ǹ��� ���۱����� ��/�Դϴ�.