먼저, 무료로 인증서를 획득하는 방법은 아래의 링크를 참조하시면 좋겠네요^^
https://blog.outsider.ne.kr/1178
인증서를 확보하셨다면 아래와 같이 인증서로 부터 keystore.p12 파일을 생성합니다.
//인증서 파일이 있는 경로로 이동후 아래와 같이 입력 openssl pkcs12 -export -in fullchain.pem -inkey privkey.pem -out keystore.p12 -name airpageserver -CAfile chain.pem -caname root
생성된 keystore.p12 파일을 특정경로에 복사해 둡니다. 이 예에서는 "/etc/letsencrypt/hahaha/live/airpage.org-0001" 경로 입니다.
그리고, application.yml 파일에 아래와 같이 내용을 추가 합니다.
server: port: 89 contextPath: / ssl: key-store: /etc/letsencrypt/hahaha/live/airpage.org-0001/keystore.p12 key-store-password: hello! key-store-type: PKCS12 key-alias: airpageserver security: require-ssl: true
만약, apache2를 운영하고 있고 서브 도메인으로 접근할 경우 해당 포트(서비스)로 포워딩 시키려면 이곳을 참고해 주세요~
이 게시물이 | |
AiRPAGE가 |