IT/centos

apache ssl 인증서 설치

SHLEE™ 2017. 10. 3. 18:12
1. apache configure 과정에서 ssl 버전 문제 발생시
[ec2-user@ip-172-31-16-251 ~]$ sudo ./configure --prefix=/usr/local/apache2 --enable-mods-shared=most --enable-module=so --enable-rewrite --with-mpm=worker --enable-ssl --enable-so
- ssl Update 후 aphache configure
[ec2-user@ip-172-31-16-251 ~]$ sudo yum install openssl-devel
[ec2-user@ip-172-31-16-251 ~]$ sudo yum update openssl
2. ssl 설치
[ec2-user@ip-172-31-16-251 ~]$ yum -y install mod_ssl
[ec2-user@ip-172-31-16-251 ~]$ yum -y install openssl
3. apache 환경 설정
[ec2-user@ip-172-31-16-251 tmp]$ sudo vim /usr/local/apache2/conf/httpd.conf

Listen 172.31.16.251:80
Listen 172.31.16.251:443


SSLRandomSeed startup builtin
SSLRandomSeed connect builtin


include conf/mod_jk.conf


DocumentRoot /usr/local/apache2/htdocs
ServerName www.MyDomain.com
JkMount /* ajp13

SSLEngine on
SSLCertificateKeyFile /usr/local/apache2/cert/www.MyDomain.com.key.pem
SSLCertificateFile /usr/local/apache2/cert/www.MyDomain.com.crt.pem
SSLCACertificateFile /usr/local/apache2/cert/RootChain/AddTrustExternalCARoot.crt