|
|
|
|
|
|
Ȩ > ���̵� > CSR�������̵� |
|
|
|
|
Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in /home/innocert/www/guide/csr_view.html on line 37
|
Apache (mod_ssl) |
|
|
�� CSR(Certificate Signing Request) ���� ����
[STEP#1] ����Ű �����ϱ�.
[STEP#2] ����Ű�� �̿��Ͽ� CSR �����ϱ�.
[STEP#3] ������ CSR�� ��û�ϱ�.
|
|
|
Apache �� SSL�� ��ġ�ϱ� ���ؼ��� mod_ssl ����� ��ġ�Ǿ� �־�� �մϴ�.
|
|
Apache �������� �ΰ��� ������� ��⼳ġ�� �����ϰ� �ֽ��ϴ�.
������ ������ ������� �Ǿ� �ְ� mod_ssl �� ��ġ�Ǿ� ���� ���� ��� ����ġ �缳ġ�� �䱸 �˴ϴ�.
��� ��ġ ���δ� �Ʒ��� ���� Ȯ���Ͻø� �ǽʴϴ�.
|
|
<�������� ��ġ�� mod_ssl ��� Ȯ�� ��>
|
|
|
<�������� ��ġ�� mod_ssl ��� Ȯ�� ��>
���� ��� �߿� mod_so.c �� Ȯ�� �� mod_ssl.so ������ �����ϴ��� �ݵ�� �Բ� Ȯ���ϼž� �մϴ�.
����ġ ��ġ ���丮 �ؿ� module Ȥ�� libexec ���丮�ȿ� mod_ssl.so �� ���� ���θ� Ȯ���Ͻʽÿ�.
|
|
|
��ġ ȯ�� ����
OS : CentOS 5.4
Web Server : Apache 2.2.16
|
|
|
Apache �������� OpenSSL �� ���� RSAŰ(����Ű)�� �����մϴ�. ����Ű�� �����Ǹ鼭 �н����带 ���µ� �� �н������
����ġ ������ �Է��ؾ� �DZ� ������ �ݵ�� �ؾ� ������ �ʵ��� ������ �ֽʽÿ�.
RSA Ű ������� 1024 bit�� 2048 bit�� �ִµ�, 2048 bit�� ������ �帳�ϴ�.
|
|
|
|
[root@localhost httpd]# openssl sha1 * > rand.dat
[root@localhost httpd]# openssl genrsa -rand rand.dat -des3 2048 > [������]
# ����Ű ���� #
(������)# openssl genrsa -rand rand.dat -des3 2048 > www.innocert.co.kr.key
Generating RSA private key, 2048 bit long modulus
...................++++++
......++++++
e is 65537 (0x10001)
Enter pass phrase: [�н������Է�]
Verifying - Enter pass phrase: [�н������Է�]
�� ����: �ش� �н������ ����ġ ���� ������ �䱸�ϴ� �н������̹Ƿ� �ݵ�� ����Ͻʽÿ�.
|
|
|
|
|
Window �� Apache �� ���, 2.2.9 ���� ������ mod_ssl �� ����� ������ SSL�� ��ġ �����մϴ�.
|
|
|
��ġ ȯ�� ����
Windows 2003 Server
Apache 2.2.14-openssl-0.9.8 ���� ( ��ġ��� : C:\Apache2.2 )
|
|
|
|
[root@localhost httpd]# openssl genrsa -out [������] 2048
# ����Ű ���� #
(������)# openssl genrsa -out www.innocert.co.kr.key 2048
Generating RSA private key, 2048 bit long modulus
...................++++++
......++++++
e is 65537 (0x10001)
|
|
|
|
|
|
[STEP#2] ����Ű�� �̿��Ͽ� CSR �����ϱ� |
|
< CSR �� ���� �ο� ���� >
Country Name : �̰��� �� �ڷ� �� ISO ������ ���� �ڵ��Դϴ�. (ex. KR)
State or Province Name : �� �̸��� �Է��ؾ� �ϸ� �� ����� �� �����ϴ�.(ex. Seoul)
Locality Name : �� �ʵ�� ��/���� �Է��Ͻø� �˴ϴ�. (ex. Gangnamgu)
Organization : ����� ������� �ִ� ȸ����� ��ġ�Ǵ� ����ȸ����� �Է��Ͻø� �˴ϴ�. (ex. KOINOS Co.,Ltd.)
Organization Unit : �������� �����ϴ� �μ����� �Է��Ͻø� �˴ϴ�. (ex. CERT Team)
Common Name : �������� �������ּҸ� �Է��Ͻø� �˴ϴ�. (ex. www.innocert.co.kr)
|
|
|
|
[root@localhost httpd]# openssl req -new -key [����Ű] -out [CSR���ϸ�] # CSR ���� #
(������)openssl req -new -key www.innocert.co.kr.key -out www.innocert.co.kr.csr
Enter pass phrase for www.innocert.co.kr.key: [�н������Է�]
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]: KR # ���� �ڵ� #
State or Province Name (full name) [Berkshire]: Seoul # ���� #
Locality Name (eg, city) [Newbury]: Yeoksamdong # ���� #
Organization Name (eg, company) [My Company Ltd]: KOINOS Co.,Ltd. # ��ü�� #
Organizational Unit Name (eg, section) []: CERT TEAM # �μ� #
Common Name (eg, your name or your server's hostname) []: www.innocert.co.kr # ������ #
Email Address []:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []: [Enter]
An optional company name []: [Enter]
���� ���� ���� �� CSR�� �̳뼭Ʈ �̸���([email protected])�� ���� �� �ֽø� �˴ϴ�.
|
|
|
|
|
|
[root@localhost httpd]# openssl req -new -key [����Ű] -out [CSR���ϸ�] -config C:\Apache2.2\conf\openssl.cnf # CSR ���� #
(������)openssl req -new -key www.innocert.co.kr.key -out www.innocert.co.kr.csr -config C:\Apache2.2\conf\openssl.cnf
Country Name (2 letter code) [GB]: KR # ���� �ڵ� #
State or Province Name (full name) [Berkshire]: Seoul # ���� #
Locality Name (eg, city) [Newbury]: Yeoksamdong # ���� #
Organization Name (eg, company) [My Company Ltd]: KOINOS Co.,Ltd. # ��ü�� #
Organizational Unit Name (eg, section) []: CERT TEAM # �μ� #
Common Name (eg, your name or your server's hostname) []: www.innocert.co.kr # ������ #
Email Address []:
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []: [Enter]
An optional company name []: [Enter]
���� ���� ���� �� CSR�� �̳뼭Ʈ �̸���([email protected])�� ���� �� �ֽø� �˴ϴ�.
|
|
|
|
|
|
|
|
|
|
|
|