본문 바로가기

IT/centos

apache ssl 인증서 설치

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

'IT > centos' 카테고리의 다른 글

Centos7 & APM 구버전 설치  (0) 2018.04.14
apache - tomcat 연동 mod_jk  (0) 2017.10.03
리눅스 아파치 설치  (0) 2017.10.03