리눅스 아파치 인증서 교체 방법
리눅스에서 아파치 인증서 교체 방법을 살펴본다.
현재상황 확인
현재 인증서 상태를 확인해 본다. 웹브라우저 주소창에 자물쇠 모양을 클릭한다. 크롬 브라우저이다.

자물쇠 모양을 클릭하면 아래와 같이 나온다.

그럼 이 사이트는 보안 연결(HTTPS)이 사용되었습니다 부분을 클릭한다.

그러면 위와 같이 나오고 인증서가 유효함 부분을 클릭한다.

그럼 위에 처럼 인증서 정보가 나온다. 이제 갱신해보자.
아파치서버에 인증서 갱신
아파치에 인증서가 어디있는지 검색해본다.
cd /
find -name ssl
./etc/httpd/ssl
이쯤에 있는것 처럽 보인다.
디렉토리로 이동하여 기존인증서 백업해 놓고 새로운 인증서를 가져다 놓는다.
아파치 재기동
아파치 명령어는 apachectl 을 사용합니다.
1. Apache 버전 확인
# httpd -v
2. Apache 상태 확인
# apachectl status
3. Apache 중지
# apachectl stop
4. Apache 시작
# apachectl start
5. Apache 재시작
# apachectl restart
일단 apachectl status 해보면
Active: active(running)
이라고 나올것이다. 재시작 후 apachectl status 해서 정상적으로 올라왔는지 확인해봐도 좋을듯.
잘 됐는지 확인
아 삽질했다.. 도메인을 개발거를 봤어야 했는데 운영거를 계속 보는 바람에.. 왜 갱신이 안되지.. 헐..
헷갈리지 말고 반영한 서버의 제대로 된 도메인으로 접근해 보면 잘 바껴있을 것이다.
엉뚱한 도메인으로 접속해서 왜 안되냐고 하지말고..
1년에 한번씩 하다보니 항상 햇갈린다.
