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cudmVyaXNpZ24uY29tL0NQUyBJbmNvcnAuYnkgUmVmLiBM
SUFCSUxJVFkgTFRELihjKTk3IFZlcmlTaWduMIGfMA0GCSqGSIb3DQEBAQUAA4GN
ADCBiQKBgQDYgoDo1hkCfR+FGDklomUr4b/UBdO85jY7qvBMbFu256o8c0VVsvG9
6pdC7Zo0ChXUqVz1QCXd2QfBMrJ1bMTKu6P+VidxQ6pj9TA+kyjl+vEJO/O3TU45
91xJWrjBHdOyiv5wMJVCy/4rUYtaPDr5Ik+QsgKnU5xPNOerBLJ7bwIDAQABo4Hj
MIHgMA8GA1UdEwQIMAYBAf8CAQAwRAYDVR0gBD0wOzA5BgtghkgBhvhFAQcBATAq
MCgGCCsGAQUFBwIBFhxodHRwczovL3d3dy52ZXJpc2lnbi5jb20vQ1BTMDQGA1Ud
JQQtMCsGCCsGAQUFBwMBBggrBgEFBQcDAgYJYIZIAYb4QgQBBgpghkgBhvhFAQgB
MAsGA1UdDwQEAwIBBjARBglghkgBhvhCAQEEBAMCAQYwMQYDVR0fBCowKDAmoCSg
IoYgaHR0cDovL2NybC52ZXJpc2lnbi5jb20vcGNhMy5jcmwwDQYJKoZIhvcNAQEF
BQADgYEACAHs5GiUA0Lxc/Ejojre6fHaxlTEIz6G6s9qOjOr6pwEFAc2Bgv5iG/V
E+4pK8Pkco1E7dGsIAkt4fbhGQU4sD0Pn3/4ngLchgKGYU4mX16fkh4MJKT10HAT
zybDQz1JHZ6CLlJfvD7GZikBjk6SLLxGdQOCrHPp2X4LZ+9UUhoAADEAAAAAAAAA
-----END CERTIFICATE-----

요놈의 인증서를 복사하여 vi 편집기를 사용하여 cert.pem 으로 apache서버의 /conf 에 저장합니다.

 

그럼 다음에 httpd.conf 파일을 열어서 다음 사항을 추가합니다..

 

먼저 VirtualHost를 만들고 그 안에 인증서와 관련된 내용을 추가 합니다...

 

Listen 443 --->요건 필수

NameVirtualHost 443--->요건 선택사항

 

<virtualHost www.xxx.www:443>

DocumentRoot /docs/

Server Name test

SSLCertificateFile /usr/local/apache/conf/ssl/cert.pem (인증서 파일 경로설정)

SSLCertificateKeyFile /usr/local/apache/conf/ssl/key.pem (키파일 경로 설정)

</virtualHost>

 

그리고 apache stop

apache startssl

비밀번호 물어보면 처음에 key 생성할때 만든 비밀번호를 넣으면 끝....

 

확인방법

 

https://localhost

 


http://blog.naver.com/cisa_cissp/150002301925

+ Recent posts