참고페이지 http://www.entropy.ch/software/macosx/docs/mod_ssl.html

mkdir /etc/apache2/ssl
cd /etc/apache2/ssl
openssl req -keyout private.pem -newkey rsa:2048 -nodes -x509 -days 365 -out cert.pem

vi /etc/apache2/httpd.conf

#Include /private/etc/apache2/extra/httpd-ssl.conf
코멘트 제거

vi /etc/apache2/extra/httpd-ssl.conf

SSLCertificateFile "/etc/apache2/ssl/cert.pem"
SSLCertificateKeyFile "/etc/apache2/ssl/private.pem"

아파치 재시작

https://127.0.0.1


Posted by tklee

댓글을 달아 주세요